Three y axis with one x axis

I want to have a plot with two y axis on the left and one on the right with a common x axis for all. How can I do that?

2 件のコメント

Liam
Liam 2024 年 5 月 1 日
編集済み: Torsten 2024 年 5 月 1 日
Kashif Naukhez
Kashif Naukhez 2024 年 5 月 1 日
No this is just the overlap of one plot over the other and is not serving my purpose.

サインインしてコメントする。

回答 (1 件)

Torsten
Torsten 2024 年 5 月 1 日

0 投票

6 件のコメント

Kashif Naukhez
Kashif Naukhez 2024 年 5 月 1 日
No this is just the overlap of one plot over the other and is not serving my purpose. Image attached.
Torsten
Torsten 2024 年 5 月 1 日
編集済み: Torsten 2024 年 5 月 1 日
These are three function plots - with each of them referring to one of the three different y-axes.
If this is not what you want, you will have to explain it in more detail.
Kashif Naukhez
Kashif Naukhez 2024 年 5 月 1 日
Look at the x axis carefully. It is not sharing the common x axis.
Torsten
Torsten 2024 年 5 月 1 日
Look at the x axis carefully. It is not sharing the common x axis.
In the link I gave, it did. So you must have done something wrong with the code.
Kashif Naukhez
Kashif Naukhez 2024 年 5 月 1 日
No @Torsten I did not do anything wrong. Fro the left most y axis, the y axis ticks are simply placed which does not look like an axis. It should have a vertical line representing it as an axis. So when I clicked on that axis, I got the y axis lik look (figure attached above) but the x axis is varying.
Torsten
Torsten 2024 年 5 月 1 日
I don't know how you get an extra solid line for the left-most y-axis. For me, one solid line as produced by the code would suffice - only the colors and the different y-scales would matter for me.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeGraphics Performance についてさらに検索

製品

リリース

R2022b

タグ

質問済み:

2024 年 5 月 1 日

コメント済み:

2024 年 5 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by