フィルターのクリア

Changing FontSizeMin when using hgexport

1 回表示 (過去 30 日間)
Art
Art 2015 年 6 月 17 日
編集済み: Art 2015 年 6 月 18 日
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?

採用された回答

Art
Art 2015 年 6 月 18 日
編集済み: Art 2015 年 6 月 18 日
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);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by