plotyy and Property Editor

4 ビュー (過去 30 日間)
Raph Hix
Raph Hix 2012 年 5 月 24 日
Hi-
I can't figure out how to use the GUI and the Property Editor to access the second axis in a plotyy figure. I can edit the properties of the main axis and its lineseries, as well as the secondary lineseries, but I can't figure out how to select the secondary axis. As a result, I can't keep the two graphs coordinated if I change the limits or linearity of the X axis. Any suggestions?
Raph

採用された回答

Raph Hix
Raph Hix 2012 年 5 月 25 日
Thanks Oleg-
I found the inspect function to be difficult to use deep in a nested set of functions, but I found a way to use the GUI after the fact. The Plot Browser does the trick.
Raph

その他の回答 (1 件)

Oleg Komarov
Oleg Komarov 2012 年 5 月 24 日
you can save the handles to the two axes and then reuse them with, e.g. inspect():
h = plotyy(...)
where h will have two handles.
Try then
inspect(h(1))
inspect(h(2))
inspect(h)

カテゴリ

Help Center および File ExchangeTwo y-axis についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by