Right and top axes disappear when I hold on a figure

17 views (last 30 days)
Hello,
My question seems so stupid that I feel obliged to say I have already looked for an answer on Mathworks. When I use hold on with a figure, the right and top axes of the figure disappear. I would like to get all four axes so that my figure has a real frame. Any idea on how I can do that?
Thank you very much,
  8 Comments
Paolo Manfredi
Paolo Manfredi on 3 Apr 2019
I had the same issue. "Box on" solves it. Thanks for the hint!
Tony Hu
Tony Hu on 15 Dec 2020
Thanks for the explanation, I found one of the subplots has a 'hold on' command before plot. Everything happens for a reason, indeed.

Sign in to comment.

Accepted Answer

Pl Pl
Pl Pl on 8 Aug 2013
Edited: Pl Pl on 8 Aug 2013
For those having a similar problem, what worked for me was the solution provided by Sandip here : http://www.mathworks.com/matlabcentral/answers/84308#comment_163486

More Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!