How to erase grid line

9 ビュー (過去 30 日間)
taiki kimura
taiki kimura 2021 年 5 月 26 日
コメント済み: taiki kimura 2021 年 5 月 27 日
clear all
set(0,'DefaultAxesXGrid','on');
set(0,'DefaultAxesYGrid','on');
set(0,'DefaultAxesGridLineStyle','-');
x = [125 250 500 1000];
y = [1 2 4 3 ];
semilogx(x,y,'*-');
xx = num2cell(x);
xticks(x)
xticklabels(xx)
I want to keep solid grid lines but erase dotted grid lines .
How do I erase that?

採用された回答

Jonas
Jonas 2021 年 5 月 26 日
編集済み: Jonas 2021 年 5 月 26 日
there are also minor grid lines. use e.g.
set(gca,'xminorgrid','off')
to remove the minor x grid
  1 件のコメント
taiki kimura
taiki kimura 2021 年 5 月 27 日
Got it. Thank you.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBartlett についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by