I have several axes in a figure that get replotted using different coordinate systems. When the grid and ticks are moved, the old tick labels are not deleted before the new tick labels are displayed, resulting in an unreadable mess. Any suggestions?

1 view (last 30 days)

Answers (1)

MathReallyWorks on 15 May 2017
Hello Dear,
You have not attached your code, so it is a bit difficult to evaluate your problem and give a proper solution of that.
But from your output window, I can say that your current graphical window has overlapped with your previous one which is resulting in an unreadable mess.
Use clf(); in your code. It clears the content in previous graphical window.
If you don't want to clear previous window, then use "figure" just above your plot function. It will open a new graphical window.
I hope this will be helpful.


Community Treasure Hunt

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

Start Hunting!