Hello there,
first question of mine, so let me know if you need more information!
Here is basically what i want to do:
The default for all figures should be similar to the call
axis padded
after one single figure.
I tried to establish this with
set(groot,'DefaultAxesXLimitMethod',"padded")
but this call gives the error
Error using matlab.ui.Root/set
Unrecognized property XLimitMethod for class Axes.
Now i am puzzled by this error as i came up with the set call by ways of the Axes Properties site in the documentation (https://de.mathworks.com/help/matlab/ref/matlab.graphics.axis.axes-properties.html#budumk7_sep_mw_7623f06d-1795-480f-b113-e08ce76e79d5) under Rulers -> XLimitMethod, YLimitMethod, ZLimitMethod.
Perhaps some spelling error or some other label (not XLimitMethod) for this call?
Calls like
set(groot,'DefaultAxesDataAspectRatioMode',"manual")
set(groot,'DefaultAxesPlotBoxAspectRatioMode',"manual")
set(groot,'DefaultAxesDataAspectRatio',[1 1 1])
set(groot,'DefaultAxesPlotBoxAspectRatio',[1 1 1])
work just fine and i grabbed these from the same documentation.
Thank you for your time,
Best regards

댓글 수: 2

Cris LaPierre
Cris LaPierre 2021년 4월 12일
Works for me. What version of MATLAB are you using?
Jakob Meyer
Jakob Meyer 2021년 4월 13일
편집: Jakob Meyer 2021년 4월 13일
Right now the version R2020b.
Will update it to R2021a and then you about whether the problem remains.

댓글을 달려면 로그인하십시오.

 채택된 답변

Cris LaPierre
Cris LaPierre 2021년 4월 13일

0 개 추천

댓글 수: 1

Jakob Meyer
Jakob Meyer 2021년 4월 14일
Jup, that was it!
Updating to 2021a was all it needed.
Thank you very much

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Axes Appearance에 대해 자세히 알아보기

태그

질문:

2021년 4월 12일

댓글:

2021년 4월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by