how to show grid lines?
조회 수: 28 (최근 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에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!