Grid on in subplot
66 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
KL
2017 年 11 月 22 日
You may want to use linkprop,
hlink = linkprop([ax1 ax2], {'GridColor','GridLineStyle','GridAlpha'});
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!