How can I make my exported figure appear exactly the same way as it does in MATLAB 7.14 (R2012a)?
2 views (last 30 days)
Show older comments
MathWorks Support Team
on 1 Aug 2013
Edited: MathWorks Support Team
on 19 Apr 2023
I have a figure window in MATLAB containing a plot or other graphics. When I use the PRINT or SAVEAS commands, some aspects of the figure change when exported, such as the labels, font size, or other features. I would like to ensure that the figure elements remain the same as they appear in MATLAB when I export the figure from MATLAB.
Accepted Answer
MathWorks Support Team
on 18 Apr 2023
Edited: MathWorks Support Team
on 19 Apr 2023
One method is to use the MATLAB Central File Exchange submission EXPORT_FIG:
To use EXPORT_FIG:
1. Download the files from the above link.
2. Extract the files to a new directory.
3. Add the directory to the MATLAB path with the following command, as an example:
addpath(genpath('export_fig'));
4. Export the figure with the following syntax (for example):
export_fig(gcf,'image.png');
Note that EXPORT_FIG is a MATLAB Central File Exchange submission, and MathWorks does not guarantee or warrant the use or content of these submissions. Any questions, issues, or complaints should be directed to the contributing author.
0 Comments
More Answers (0)
See Also
Categories
Find more on Printing and Saving 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!