How to set default aspect ratio of 2D-3D plot in Matlab
3 views (last 30 days)
Show older comments
Hi ,
How can I set pbaspect([2.5 3.5 1]) in the startup.m file for every plot?
Thanks,
Answers (1)
Greg
on 17 Feb 2018
Edited: Greg
on 19 Feb 2018
set(groot,'defaultAxesPlotboxAspectRatio',[2.5,3.5,1]);
set(groot,'defaultAxesPlotboxAspectRatioMode','manual');
See Also
Categories
Find more on Annotations 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!