Gnuplot命令在终端窗口中留下许多不必要的输出文本

时间:2018-05-21 20:36:56

标签: fortran gnuplot gfortran fortran90

我更喜欢通过以下命令调用gnuplot来绘制主Fortran程序文件:

call system('gnuplot heun_ode_solution_10_comparison.gnu;')

.gnu文件的内容如下:

#======================================

set term postscript color

unset key

unset grid

set title "Heun's ODE solver for 10 data samples" font "Helvetica Bold, 
24"

set xlabel "x" font "Helvetica Bold, 24"

set ylabel "y" font "Helvetica Bold, 24"

set xrange[0:4]

set yrange[0:80]

set xtics 0, 1, 4

set ytics 0, 15, 75

show term

plot "Heun_Solution_10.dat" using 1:3 smooth csplines lc rgb 'blue' lw 6 

title "True", "Heun_Solution_10.dat" using 1:2 smooth csplines lc rgb 
'red' lw 3 title "Heun"

set key top left

set term postscript eps enhanced "Helvetica" 26

set output 'heun_ode_solution_10_comparison.eps'

replot

#======================================

程序运行良好,情节也很好。但是我编译和运行fortran代码的终端窗口充满了不必要的输出文本。这使得在程序遇到任何编译错误时难以向上滚动终端窗口。我只是粘贴了我在终端中看到的输出的前5%。

-----------------------
 terminal type is postscript landscape enhanced defaultplex \
   leveldefault color colortext \
   dashlength 1.0 linewidth 1.0 pointscale 1.0 butt noclip \
   nobackground \
   palfuncparam 2000,0.003 \
   "Helvetica" 14  fontscale 1.0 

%!PS-Adobe-2.0
%%Creator: gnuplot 5.2 patchlevel 2
%%CreationDate: Mon May 21 21:57:04 2018
%%DocumentFonts: (atend)
%%BoundingBox: 50 50 554 770
%%Orientation: Landscape
%%Pages: (atend)
%%EndComments
%%BeginProlog
/gnudict 256 dict def
gnudict begin
%
% The following true/false flags may be edited by hand if desired.
% The unit line width and grayscale image gamma correction may also be changed.
%

----------------------

可以想象如果从Fortran文件调用多个gnu文件的情况。如何抑制这些不必要的输出文本?

0 个答案:

没有答案