Grid on in subplot
88 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, i used the subplot function and want to apply to all the subplot this grid properties:
grid on
ax = gca;
ax.GridColor = [0 .5 .5];
ax.GridLineStyle = '--';
ax.GridAlpha = 0.5;
Is there any easy way to apply this without repeating it for every subplots? Thank you
0 Kommentare
Akzeptierte Antwort
KL
am 22 Nov. 2017
You may want to use linkprop,
hlink = linkprop([ax1 ax2], {'GridColor','GridLineStyle','GridAlpha'});
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Subplots 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!