Zoom box in a plotyy
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi,
I ploted a graph based on four curves. They have diferent scale, so I use plotyy function. Besides, in order to plot the 2 different graphs, I use hold on in order to plot one and then the following one, with is not the best idea.
Now, I want to take a zoom of a specific region in my plot. There are lot of options avaliable for doing this task but I cannot find anyone that takes the 2 scales plot. In other words, I would like to get a zoom for the plot attached.
Is there any suggestion?
댓글 수: 0
답변 (2개)
Walter Roberson
2017년 7월 12일
You can link the zoom using linkaxes or linkprop. I seem to recall that linkaxes is done automatically for plotyy with respect to the x axes. Linking with respect to the y axes of a plotyy is trickier because the two might have different ylim
댓글 수: 0
Héctor Rubén Díaz
2017년 7월 12일
편집: Walter Roberson
2017년 7월 12일
댓글 수: 1
Walter Roberson
2017년 7월 12일
Could you confirm that in your second plotyy that the x axes values, t1, are a different range than the x axis values for the first plot, t ? If so that complicates matters.
참고 항목
카테고리
Help Center 및 File Exchange에서 Two y-axis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!