As far as I can tell, gnuplot can only plot vector fields when reading data from a file. Your file will have to have 4 columns, x, y, deltax and delta y, and gnuplot will then plot a vector from (x,y) to (x+deltax, y+deltay) for each line in the file:plot "file.dat" using 1:2:3:4 with vectors head filled lt 2如果您不坚持使用gnuplot,则可以使用其他工具更好或更轻松地实现.我个人使用渐近线.在渐近线此处中绘制了一个矢量场的示例.If you are not insisting on using gnuplot, there are other tools that can to this better or at least easier. I personally use asymptote. There is an example of a vectorfield plotted in asymptote here. 这篇关于使用gnuplot的向量场的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-01 22:59