How can I make my exported figure appear exactly the same way as it does in MATLAB 7.14 (R2012a)?

8 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 18 de Abr. de 2023
Editada: MathWorks Support Team el 19 de Abr. de 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.

Más respuestas (0)

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by