MATLAB: How to get the axis visible

visibility axis

I plotted a rectangle in my figure. By doing this my y-axis (line and ticks) disappeared partly (see attachment). How can I make my y-axis visible again?
Thanks in advance!

Best Answer

Set the 'Layer' property to 'top':
axes('Layer', 'top')
... Draw the objects