Exporting Figures in matlab

1 次查看(过去 30 天)
JA
JA 2016-10-17
I want to export figurtes in specific height and width in Matlab. Right now I change the Height and width of the figure.
set(gcf,'position',[100 10 320 230])
And then export it with export_fig. But I fell this is pretty small, as legend appears over my signal.
Is there any way to plot it properly and then export it in the height and width we need? or we have to set the figure in that size and then we need to export it?

回答(1 个)

Massimo Zanetti
Massimo Zanetti 2016-10-17
编辑:Massimo Zanetti 2016-10-17
I don't think export_fig allows you to set height and width. But, consider using
-m<val> - option where val indicates the factor to magnify the
on-screen figure pixel dimensions by when generating bitmap
outputs. Default: '-m1'.
The number aside m is the factor to magnify the image displayed on the screen. So if you believe 1 to small, increase it. This is taken from the description of the export_fig function. The author made available this option properly because of resizing:

类别

Help CenterFile Exchange 中查找有关 Graphics Object Properties 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by