2D Plot with 3 axis

52 ビュー (過去 30 日間)
david scholz
david scholz 2012 年 5 月 13 日
コメント済み: Ahmad Khalid 2020 年 12 月 19 日
hey i was wondering if somebody knows how to make a 2D plot with 3 axis...with that i mean a normal 2D plot that has two y axis (i.e. the left and right y axis have different scales) and one x-axis?
thanks for youre help
david

回答 (3 件)

Wayne King
Wayne King 2012 年 5 月 13 日
Have you seen plotyy?
x = 0:0.01:20;
y1 = 200*exp(-0.05*x).*sin(x);
y2 = 0.8*exp(-0.5*x).*sin(10*x);
[AX,H1,H2] = plotyy(x,y1,x,y2,'plot');

david scholz
david scholz 2012 年 5 月 13 日
hey wayne
no i hadnt, thanks alot!
ds

Ferran Guedea I Ripoll
Ferran Guedea I Ripoll 2015 年 4 月 24 日
I have created a 2D plot with 3 axis thanks to the plotyy command. Now I want to reformat all 3 axis: max, min limits and ticks for the axis. For the x axis and y principal axis I have been able with the basic commands but not for the 2nd Y axis. Any idea? Thank you in advance -Ferran
  3 件のコメント
Devaprasad M
Devaprasad M 2020 年 12 月 17 日
How to add label for third axis in Plotyy
Ahmad Khalid
Ahmad Khalid 2020 年 12 月 19 日
yyaxis right;
ylabel ('axis-3 label')

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

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by