Editing y limits for multiple axes using property inspector
58 ビュー (過去 30 日間)
古いコメントを表示
I am generating plots with dual y-axes (using yyaxis left/right).
With
ax=gca; ax.YAxis(1).Limits=[0 10]
or .YAxis(2). I can set both y axes limits individually.
When using the property inspector I did find only values for one of the y limits (see screenshot).
![Capture.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/244149/Capture.png)
Is there a way to edit both y limits using the property inspector?
Thanks.
0 件のコメント
採用された回答
Ajay Pattassery
2019 年 10 月 30 日
The properties of both the axes can be edited by using the property inspector.
If the right axes property needs to be edited, first click on the right axes on the figure window and then change the required property in the property explorer window.
Similarly for editing the left axes property, first click on the left axes and then edit the corresponding property.
Alternatively,
Click on Desktop > Property Editor
A new palette will open on the bottom of the figure where you can select left or right under Y-Axis and can change the required properties. (sample image attached)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!