How do I set grid spacing in gnuplot

前端 未结 2 2006
伪装坚强ぢ
伪装坚强ぢ 2021-02-15 12:41

I have yaxis from 0 to 100. I want a grid line after every 10 units. How can I do that? That is, how can I draw grid lines after each 10 units?

2条回答
  •  忘了有多久
    2021-02-15 13:35

    Have a look at "help grid", you probably want to do something like

    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
    

提交回复
热议问题