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!