How to set default aspect ratio of 2D-3D plot in Matlab

3 次查看(过去 30 天)
Hi ,
How can I set pbaspect([2.5 3.5 1]) in the startup.m file for every plot?
Thanks,

回答(1 个)

Greg
Greg 2018-2-17
编辑:Greg 2018-2-19
set(groot,'defaultAxesPlotboxAspectRatio',[2.5,3.5,1]);
set(groot,'defaultAxesPlotboxAspectRatioMode','manual');
  5 个评论
Greg
Greg 2018-2-20
You hijacked somebody else's thread from 4 years ago, then changed it to the exact opposite question.
MarionJ
MarionJ 2018-2-21
Absolutely not. It's irrelevant if I want to set it to 'auto' or to 'manual' or to defined values, respectively. The question is how to...

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by