Clear Filters
Clear Filters

Exporting Figures in matlab

1 view (last 30 days)
JA
JA on 17 Oct 2016
Edited: Massimo Zanetti on 17 Oct 2016
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?

Answers (1)

Massimo Zanetti
Massimo Zanetti on 17 Oct 2016
Edited: Massimo Zanetti on 17 Oct 2016
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:

Tags

Community Treasure Hunt

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

Start Hunting!