Multiple plots on 1 Figure
Mostrar comentarios más antiguos
Hi I am trying to plot 3 different data sets each with 3 different x axes but the same y axis on one Figure. I want to move the x axis tick labels on the axis that I have two of the data sets on, but I can seem to figure it out. Here is a link to what the plot looks like for more clarification. Any help is much appreciated.
Respuestas (1)
Sean de Wolski
el 8 de Mayo de 2012
Either use plotyy() or hold on to accomplish this:
plot(1:10,1:10,'r-');
hold on
plot(1:10,10:-1:1,'b--')
For more info:
doc hold
doc plotyy
Categorías
Más información sobre Two y-axis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!