How to reduce a figure size within the plotting area and adjuste it to be centralized?
Mostra commenti meno recenti
I want to to adjust the plotting area of this figure,

so, when I save the figure it will have it with a reduced white area arounding it.
I have tried the following
f1 = figure(1);
FigSize12 = get(f1,'position');
% f1.Units = 'pixels';
f1.Position = [600 400 FigSize12(3) FigSize12(4)/2.75];
And I get:

But, doing that I am not able to reduce the width and my figure is not centralized within the plotting area. As I need to do this procedure for many figures I need also to be able to control the length and the width using the figure properties.
4 Commenti
Walter Roberson
il 27 Lug 2019
Have you looked at the PaperPosition property of figures?
It is not clear how you are saving the figure?
AXL
il 27 Lug 2019
Walter Roberson
il 27 Lug 2019
Adjusting the Position property does not change the PaperPosition property.
AXL
il 27 Lug 2019
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!