How to display only grid on axes (without values)?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Csanad Levente Balogh
am 14 Feb. 2021
Beantwortet: Walter Roberson
am 14 Feb. 2021
Hi All!
I want to do a plot, where the grid of the y axes in displayed, but there is no y values. I tried:
set(gca,'ytick',[]);
With that command the y values disappear. Then I use:
ax = gca;
ax.YGrid = 'on';
But the grid doesn't reappear. I soppose that with the sirt command, I make the y axes grid and values invisible, and than if I make a change to them, they still won't appear? But I'm just guessing. Is there a way to show the grid, but hide the values?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!