Editing y limits for multiple axes using property inspector

69 次查看(过去 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
Is there a way to edit both y limits using the property inspector?
Thanks.

采纳的回答

Ajay Pattassery
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)
  1 个评论
Gerrit Mielke
Gerrit Mielke 2019-11-4
Thank you.
Stangely enough, editing both axes using the property inspector on my system works for some figures and for some others it does not. I don't know why.
Your atlernative seems to work better for me.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by