如何在gnuplot中设置网格间距 [英] How do I set grid spacing in gnuplot
本文介绍了如何在gnuplot中设置网格间距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的yaxis从0到100.我希望每10个单位后有一条网格线.我怎样才能做到这一点?也就是说,如何每10个单位绘制一条网格线?
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?
推荐答案
看看帮助网格",您可能想做类似的事情
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
这篇关于如何在gnuplot中设置网格间距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文