xlim is not working with the limitmethod option, and how to change its default behaviour?

49 ビュー (過去 30 日間)
Mohit Kumar
Mohit Kumar 2021 年 3 月 29 日
コメント済み: Mohit Kumar 2021 年 4 月 6 日
Hi,
I am trying to run xlim('tight') but this gives me an error. According to the documentation it should work. The error is:
Error using xlim (line 31)
Specify limits or one of the 'mode', 'auto', or 'manual' options.
What should I do? And finally, I want to be able to change my default MATLAB plot setting to tight instead of tickaligned

採用された回答

Reshma Nerella
Reshma Nerella 2021 年 4 月 6 日
Hi,
The feature LimitMethod for axes is introduced in R2021a. You are getting this error since you are using R2020b.
Refer to the release notes: release notes

その他の回答 (0 件)

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by