Grid on in subplot
조회 수: 103 (최근 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!