我有从0到100的yaxis.我想要每10个单位后有一个网格线.我怎样才能做到这一点?也就是说,如何在每10个单位后绘制网格线?
小智 6
看看“帮助网格”,您可能想要做类似的事情
set yrange [0:100]
set xrange [0:10]
set grid ytics mytics # draw lines for each ytics and mytics
set mytics 2 # set the spacing for the mytics
set grid # enable the grid
plot sin(x)*100
Run Code Online (Sandbox Code Playgroud)