MATLAB: Force grid to be on top of patch

figuregridpatch

I'm referring to this question:
How can I add grid to the figure which is not covered by the patch color?

Best Answer

If you mean the kind of grid you get from "grid on", then set the axes "Layer" property to 'top'