2012-07-11 69 views

回答

13

你想自定義網格中每一行的外觀嗎?如果是的話,你可以用創建和使用linestyles一切正常機制:

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 
+0

我有一種預感,但現在我知道了。我只是想強調曲線應該趨向於的平均值,而你的箭頭建議正是這樣做的!非常感謝。 – ExpertNoob 2012-07-12 11:24:00