-5
如何在gnuplot中以矢量形式绘制该程序(fortran)?命令:Gnuplot矢量堡垒
调用execute_command_line(“gnuplot plotvel.txt”)似乎不起作用。什么都没有发生
什么使用1:2:3:4是指?在“暗算‘FILE.DAT’用1:2:3:4与载体填充头LW 3”
call execute_command_line("gnuplot plotvel.txt")
如何在gnuplot中以矢量形式绘制该程序(fortran)?命令:Gnuplot矢量堡垒
调用execute_command_line(“gnuplot plotvel.txt”)似乎不起作用。什么都没有发生
什么使用1:2:3:4是指?在“暗算‘FILE.DAT’用1:2:3:4与载体填充头LW 3”
call execute_command_line("gnuplot plotvel.txt")
首先,你是在节目开始制作一个数据文件plotdata.txt
,同时努力稍后绘制file.dat
,以便Gnuplot找不到后者。固定在此之后,你可以将-persist
选项,以防止在屏幕上的图表作为
call execute_command_line("gnuplot -persist plotvel.txt")
否则图形立即消失,您无法看到图片。另外,using 1:2:3:4
表示您在数据文件中绘制第1,2,3列和第4列。对于vectors
,前两个代表每个矢量的起始点,后两个代表要绘制的矢量。省略using 1:2:3:4
也是可以的,因为它是vectors
的默认值。 (在下图中,我删除了xrange
和yrange
以绘制所有的载体。)