Why doesn't "hold on" work when I have a figure that has opened with the title bar Figures - Figure 1?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
Normally, I can make a plot and save it as a .fig file. Then, when I open it later, it will open and show just "Figure 1" in the title bar. Then I can use the command "hold on" to plot other things on that same graph.
On a few of my recent graphs, I had to open the Figure Properties to change some line sizes and I saved those figures in the same way. Now, when I open those figures, the title bar says "Figures - Figure 1" and when I use hold on, it makes a new graph.
It seems like I must have somehow opened these differently somehow, but I have no idea why hold on wouldn't work in the same way, or what I did. Can anyone offer an idea of how to get my figures to open up as JUST the single figure so that I can use hold again?
Thank you!
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 24 Apr. 2014
"hold on" applies to the current axis. Possibly the axis that is current at the time you do the "hold on" is not the one you expect. You can hold a specific axis if you use the function form. For example,
hold( find(gcf, 'tag', 'MyGui_axes1'), 'on')
6 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Specifying Target for Graphics Output 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!