Exporting Figures in matlab
2 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
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:
0 Comments
See Also
Categories
Find more on Graphics Object Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!