箭头点位于gnuplot的文件上 [英] Arrow points are located on the file on gnuplot

查看:61
本文介绍了箭头点位于gnuplot的文件上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过此命令,我可以在gnuplot上创建一个箭头.

I know by this command I can create one arrow on gnuplot.

set arrow from 0,0 to 1,1

但是问题是我想创建一组箭头.位于 file.data 上. x1,y1,x2和y2不在数据文件中,我只是将它们展示出来以更好地显示它们

But the problem is this which I want to create a set of arrows. which located on file.data. the x1, y1, x2 and y2 are not in the data file I just out them to show them better

x1  y1   x2   y2 

80 42.34 75 50.34
75 50.34 65 50.34
65 50.34 60 58.34
60 58.34 65 66.34
65 66.34 60 75

有任何方法可以将此文件传递给gnuplot.为了创建从(x1,y1)到(x2,y2)的箭头

ius there any way to pass this file to gnuplot. in order to create an arrow from (x1,y1) to (x2,y2)

推荐答案

您可以使用with vectors样式进行绘制.对于您的数据文件,这将是:

You can plot with the with vectors style. With your data file, this would be:

plot "data" using 1:2:($3-$1):($4-$2) with vectors

这篇关于箭头点位于gnuplot的文件上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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