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

3 Ansichten (letzte 30 Tage)
John Aung
John Aung am 9 Mär. 2014
Kommentiert: MarionJ am 21 Feb. 2018
Hi ,
How can I set pbaspect([2.5 3.5 1]) in the startup.m file for every plot?
Thanks,

Antworten (1)

Greg
Greg am 17 Feb. 2018
Bearbeitet: Greg am 19 Feb. 2018
set(groot,'defaultAxesPlotboxAspectRatio',[2.5,3.5,1]);
set(groot,'defaultAxesPlotboxAspectRatioMode','manual');
  5 Kommentare
Greg
Greg am 20 Feb. 2018
You hijacked somebody else's thread from 4 years ago, then changed it to the exact opposite question.
MarionJ
MarionJ am 21 Feb. 2018
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...

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by