How can I draw double Y-axis on a time series plot
1 回表示 (過去 30 日間)
古いコメントを表示
I would like to draw these two graphs on a single panel with two y-axes. Does anyone know how?
fcha = timeseries(fch4,time,'Name','CH4');
fchb = timeseries(fco2,time,'Name','CO2');
tsc = tscollection({fcha fchb});
plot(tsc.CH4,'r-')
figure
plot(tsc.CO2,'b-')
Hiroki
0 件のコメント
回答 (2 件)
Ilham Hardy
2012 年 11 月 27 日
x = time;
y = fch4;
y1 = fco2;
[ax,h1,h2] = plotyy(x,y,x,y1);
set(h1,'color','r');
set(h2,'color','b');
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Time Series Collections についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!