Exporting Figures in matlab

1 vue (au cours des 30 derniers jours)
JA
JA le 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?

Réponses (1)

Massimo Zanetti
Massimo Zanetti le 17 Oct 2016
Modifié(e) : Massimo Zanetti le 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:

Catégories

En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by