Interactive plot

조회 수: 4 (최근 30일)
Raldi
Raldi 2011년 12월 5일
Hi everyone I was wondering, lets say we have a gui that at some point will generate a plot. Is there a way to somehow add the ability to manipulate that plot, for example use the muse to grab and move it, and at the same time keep track of the its changes in a variable?

채택된 답변

Jan
Jan 2011년 12월 5일

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 12월 5일
Grabbing a plot and moving it (within a fixed axes drawing area) is implemented by changing the XLim and YLim properties of the axes (see also the xlim() and ylim() commands).
You can get the current XLim and YLim properties before you update the plot, and then after the data update you can apply the limits again.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by