Multiple plots on 1 Figure
Show older comments
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.
Answers (1)
Sean de Wolski
on 8 May 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
Categories
Find more on Two y-axis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!