Keep the graphic's zoom
이전 댓글 표시
Hi,
I would like to know how I can keep the zoom of graphic when I will go to change the variable that I'm watching at the moment.
thanks
regards
댓글 수: 6
Andrew Newell
2011년 3월 14일
By "changing the variable", do you mean replotting with new values?
Mtlb Usr
2011년 3월 14일
Andrew Newell
2011년 3월 14일
I think so. Do you want to preserve the axes limits or the scale? (In other words, if your X axis limits are [3 5] after zooming, do you want to keep it at [3 5] or [Xlower Xlower+2]?)
Mtlb Usr
2011년 3월 15일
Mtlb Usr
2011년 3월 16일
Jan
2011년 3월 16일
Please anser my question. Keeping the limits and zooming is a contradiction. Therefore you cannot do both.
채택된 답변
추가 답변 (1개)
Andrew Newell
2011년 3월 14일
If I understand your question, you can do something like the following. Make your first plot, for example
plot(1:10)
Zoom in, and then save the values of axis:
v = axis;
Finally, make your next plot and set the axis values.
plot(3:5)
axis(v)
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!