Effacer les filtres
Effacer les filtres

Interactive plot

1 vue (au cours des 30 derniers jours)
Raldi
Raldi le 5 Déc 2011
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?

Réponse acceptée

Jan
Jan le 5 Déc 2011

Plus de réponses (1)

Walter Roberson
Walter Roberson le 5 Déc 2011
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.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by