force grid to be on top of patch
조회 수: 5 (최근 30일)
이전 댓글 표시
I'm referring to this question:
How can I add grid to the figure which is not covered by the patch color?
댓글 수: 0
채택된 답변
Walter Roberson
2020년 9월 25일
If you mean the kind of grid you get from "grid on", then set the axes "Layer" property to 'top'
댓글 수: 2
Walter Roberson
2020년 9월 26일
Use two axes in the same position. The one with the patch is drawn first and has normal background color and grid turned on. Anything that should appear above the grid goes onto the second axes, which should have background color 'none'
In theory yyaxis can be used for this purpose, if you turn axes visible off for the right axes and grid on for the left axes (with the patch)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Polygons에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!