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