Filter löschen
Filter löschen

Changing FontSizeMin when using hgexport

1 Ansicht (letzte 30 Tage)
Art
Art am 17 Jun. 2015
Bearbeitet: Art am 18 Jun. 2015
Using R2014b, I have a figure that includes text, and I am using hgexport to save this figure to the clipboard using the following code:
figure1 = gcf
hgexport(figure1,'-clipboard');
For some reason the text (which is set to fontsize 6 on the figure) gets reset to fontsize 8 when exporting. How do I set FontSizeMin to be 6 or less from the command line call?

Akzeptierte Antwort

Art
Art am 18 Jun. 2015
Bearbeitet: Art am 18 Jun. 2015
This works. Credit to Matlabber-
You can assign a variable containing export settings using 'factorystyle', view them all by typing variable, then modify as needed:
NewStyle = hgexport('factorystyle');
%%view all settings:
NewStyle
%%reset appropriate settings:
NewStyle.FontSizeMin = 4;
%%export figure with new settings:
hgexport(fignum,'-clipboard',NewStyle);

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by