Why does the legend in my figure disappear when I use HGSAVE and HGLOAD to save and reload the figure in MATLAB 7.0 (R14)?

2 views (last 30 days)
I type the following commands at the MATLAB command prompt:
plot([0 1],[5 1]);
legend('Test Plot')
legend boxoff
hgsave('test')
hgload('test')
The loaded figure no longer contains the legend that was in the original figure.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
We have verified that there is a bug in MATLAB 7.0 (R14) in the way that the HGSAVE and HGLOAD functions handle legends.
There are no known workarounds.

More Answers (0)

Products


Release

R14SP1

Community Treasure Hunt

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

Start Hunting!