how to show grid lines?
67 次查看(过去 30 天)
显示 更早的评论
Dear sir/madam,
I gave the command grid on, but no grid lines were shown on the figure window. Why is it so? What is the right way to get grid lines? Looking forward to hearing from you soon.
Thanking you, BSD
0 个评论
采纳的回答
Sean de Wolski
2011-9-8
Do you have anything plotted? There has to be something plotted for the grid to be visible.
plot(1:10);grid on
0 个评论
更多回答(1 个)
Grzegorz Knor
2011-9-8
Do you have specified XTick and YTick? Look at these examples:
plot(1:10)
grid on
and:
plot(1:10)
grid on
set(gca,'XTick',[])
set(gca,'YTick',[])
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!