Exporting Figures in matlab
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Massimo Zanetti
am 17 Okt. 2016
Bearbeitet: Massimo Zanetti
am 17 Okt. 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 Kommentare
Siehe auch
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!