Multiple plots on 1 Figure
显示 更早的评论
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.
回答(1 个)
Sean de Wolski
2012-5-8
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
类别
在 帮助中心 和 File Exchange 中查找有关 Two y-axis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!