How to erase grid line

11 次查看(过去 30 天)
taiki kimura
taiki kimura 2021-5-26
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

更多回答(0 个)

标签

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by