2

这一切都在主题中。

如何在 Gnuplot (v4.6) 图表中自定义特定的网格线?

任何提示表示赞赏。

4

1 回答 1

15

您想自定义网格中每条线的外观吗?如果是这样,您可以使用创建和使用线条样式的所有正常机制:

set style line 100 lt 1 lc rgb "red" lw 2
set grid ls 100
plot sin(x)

但是,如果您想自定义单行,则不能这样做。我能想到的最好的事情是在顶部放另一条线(无头箭头):

set grid
set style line 100 lt 1 lc rgb "red" lw 2
set arrow 100 from 0,-1 to 0,1 nohead ls 100 front
plot sin(x)

请注意,您也可以将箭头定位在不同的坐标系中:

set arrow 100 from graph 0.5,0 to graph 0.5,1 nohead ls 100 front
于 2012-07-11T17:27:53.853 回答