create a plot with two y - axis where the second one is just a reference scale.

1 回表示 (過去 30 日間)
Scarlet Passer
Scarlet Passer 2021 年 1 月 15 日
回答済み: Cris LaPierre 2021 年 1 月 15 日
Hello,
so I'm plotting number concentration (N) by optical depth (tau). i.e. I want a plot where N is the x-axis and tau is the y. However, for any given tau there is an associated altitude, (alt). I want a second y-axis just as a reference scale which corresponds to alt, that way when you look at the graph you can see both the tau and the alt which an N corresponds to. I have all three variables as arrays of the same length, but I can't figure out how to get a second y-axis which scales to the first one but has a different variable.
Thanks!

回答 (1 件)

Cris LaPierre
Cris LaPierre 2021 年 1 月 15 日
I provided this solution for a similar request in add designer.
Remove any "app." and "app.UIAxes," and it should work.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by