2016-03-04 122 views
-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") 

回答

2

首先,你是在节目开始制作一个数据文件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的默认值。 (在下图中,我删除了xrangeyrange以绘制所有的载体。)enter image description here