How can I draw double Y-axis on a time series plot
Mostrar comentarios más antiguos
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
Respuestas (2)
Muruganandham Subramanian
el 27 de Nov. de 2012
0 votos
You can do with 'subplot' command
Ilham Hardy
el 27 de Nov. de 2012
x = time;
y = fch4;
y1 = fco2;
[ax,h1,h2] = plotyy(x,y,x,y1);
set(h1,'color','r');
set(h2,'color','b');
Categorías
Más información sobre Time Series Collections en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!