Why do my axes and labels disappear when I export a figure in MATLAB 7.0 (R14)?

33 views (last 30 days)
When I export a figure using the File -> Save As dialog, the figure is exported but it does not have the axes and labels any longer. This does not occur when I save the figure from the Command Prompt using the following code:
I=getframe(gcf);
imwrite(I.cdata,'exported.tiff');

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
The axes information is not saved due to the export settings of the figure. The default option is for MATLAB to turn the background white. If you have a custom background color in the figure with white text, the image is saved with white text on a white background. This causes the axes and labels to disappear. To prevent MATLAB from changing the background color, do the following:
1) From the figure window, go to File -> Export Setup
2) On the left, click on "Rendering"
3) Uncheck the "Custom Color" box

More Answers (0)

Categories

Find more on Labels and Annotations in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!