的輕微抽動mxtics和mytics也被畫出來,但是與主要抽搐相同的格式。當你想區分它們時,這是一個問題。你用箭頭解決了這個問題,但我發現首先繪製小剔號並用箭頭替代主剔號更容易。坦克。
set style line 100 lt 2 lc rgb "blue" lw 1
set style line 101 lt 1 lc rgb "gray" lw 1
# first draw the minor tics
set xrange [0:1]
set mxtics 10
set yrange [0:1]
set mytics 5
set grid mxtics mytics ls 101
# then the main tics
dx=0.2 #grid spacing in x
set for [i=1:5] arrow from graph i*dx,graph 0 to graph i*dx,graph 1 nohead front ls 100
dy=0.2 #grid spacing in y
set for [i=1:5] arrow from graph 0,graph i*dy to graph 1,graph i*dy nohead front ls 100
plot sin(x)
這有點令人困惑,因爲網格只在主要的tic標記處繪製。 – mgilson 2012-07-15 23:35:43