force grid to be on top of patch
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohammad
am 25 Sep. 2020
Kommentiert: Walter Roberson
am 26 Sep. 2020
I'm referring to this question:
How can I add grid to the figure which is not covered by the patch color?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 25 Sep. 2020
If you mean the kind of grid you get from "grid on", then set the axes "Layer" property to 'top'
2 Kommentare
Walter Roberson
am 26 Sep. 2020
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)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Polygons 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!