Gnuplot矢量fortran [英] Gnuplot vector fortran

查看:242
本文介绍了Gnuplot矢量fortran的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何在gnuplot中以矢量形式绘制这个程序(fortran)?命令:

调用execute_command_line(gnuplot plotvel.txt)似乎不起作用。什么都没有发生



使用1:2:3:4是什么意思? inplotfile.datusing 1:2:3:4 with vectors filled head lw 3

 调用execute_command_line( gnuplot plotvel.txt)


解决方案

首先,您在程序开始时制作一个数据文件 plotdata.txt ,同时尝试绘制 file.dat ,所以Gnuplot找不到后者。解决这个问题之后,你可以附加 -persist 选项来保持屏幕上的图形为

 调用execute_command_line(gnuplot -persist plotvel.txt)

否则图消失瞬间,你看不到图片。此外,使用1:2:3:4 表示您绘制数据文件中的第1,2,3列和第4列。对于向量,前两个代表每个向量的起点,最后两个代表要绘制的向量。使用1:2:3:4 省略也是可以的,因为它是 vectors 的默认值。 (在下面的图表中,我删除了 xrange yrange 来绘制所有向量。)


How do you plot this program(fortran) in vector form in gnuplot?? the command:

call execute_command_line("gnuplot plotvel.txt") does not seem to work. Nothing happens

And what does using 1:2:3:4 mean?? in " plot "file.dat" using 1:2:3:4 with vectors filled head lw 3 "

call execute_command_line("gnuplot plotvel.txt")

解决方案

First of all, you are making a data file plotdata.txt at the beginning of the program, while trying to plot file.dat later, so that Gnuplot cannot find the latter. After fixing this, you can attach -persist option to keep the graph on the screen as

call execute_command_line("gnuplot -persist plotvel.txt")

Otherwise the graph disappears instantly and you cannot see the picture. Also, using 1:2:3:4 means that you plot the 1st, 2nd, 3rd, and 4th columns in your data file. For vectors, the first two represent the starting point of each vector and the last two the vector to be plotted. It is also OK to just omit using 1:2:3:4 because it is the default for vectors. (In the graph below, I removed xrange and yrange to plot all the vectors.)

这篇关于Gnuplot矢量fortran的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆