force grid to be on top of patch
9 次查看(过去 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!