I would like to know the steps to remove gridline (see attached) from the plot. Please advise.

 채택된 답변

Walter Roberson
Walter Roberson 2017년 12월 28일

0 개 추천

Those are not grid lines: grid lines cross the entire axes. Those are tick marks.
If you are fine to remove the tick labels along with the ticks then
set(gca, 'xtick', [])
If you need to retain the tick labels but the tick marks should not be drawn then
set(gca, 'TickLength', [0 0])
But perhaps you just want
set(gca, 'TickDir', 'out')

댓글 수: 1

alpedhuez
alpedhuez 2017년 12월 28일
set(gca, 'TickLength', [0 0]) Thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

제품

태그

질문:

2017년 12월 28일

댓글:

2017년 12월 28일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by