Gnuplot:特定位置的垂直线

标签 gnuplot

我正在 gnuplot 的帮助下从 csv 文件读取数据。大多数线有 8 列,其中一些有 9 列。每当有 9 列时,我想画一条垂直线(考虑标记该位置)。我可以用 gnuplot 实现这一点吗?

最佳答案

您可以使用(假设我在 x 轴上的点是 0.35,并且我想要整个 y 轴):

set arrow from 0.35,graph(0,0) to 0.35,graph(1,1) nohead

或者,如果您想在特定的 y 范围{ymin,ymax} 中显示此内容

set arrow from 0.35,ymin to 0.35,ymax nohead

如果您想自定义更多内容,可以使用:

set style arrow {idx:index} default 

set style arrow {idx:index} [ nohead | head | backhead | heads ] 

                            [ size {flt:length} [,{flt:angle}]

                                   [,{flt:backangle}] ] 

                            [ filled | empty | nofilled ] 

                            [ front | back ] 

                            [ [ linetype | lt {idx:type} ] 

                              [ linewidth | lw {int:width} ] 

                              | [ linestyle | ls {idx:style} ] ] 

有关 gnuplot 运行的更多信息:

help arrow

关于Gnuplot:特定位置的垂直线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4499998/

相关文章:

java - 将 gnuplot 与 java 结合使用

gnuplot - 让 gnuplot 忽略给定范围之外的数据的正确方法是什么?

shell - 将 Gnuplot 变量传递给 shell 表达式

gnuplot - 使用 splot 填充 3D 线下方的区域

matplotlib - 绘制3D非正交坐标

无法使用 execv() 执行程序

gnuplot - 我怎样才能在 gnuplot 中画一个箭头,使其在轴上?

Gnuplot 脚本,for 循环内或添加到现有绘图

Gnuplot : How to specify the graph width in pixels?

linux - gnuplot 自动排序时间