Update viscircles position in an interactive plot

7 vues (au cours des 30 derniers jours)
Raldi
Raldi le 29 Mar 2018
Commenté : Adam le 29 Mar 2018
I am creating a circle at a specified position using
F = viscircles([Xposition Yposition], radious);
Later on the code I need to update the circles' position by using the hanfle `F`, in the same manner that if this was a scatter plot I could say
set(F, 'XData', ...
What is the equivalent command for setting the circles' center?
  1 commentaire
Adam
Adam le 29 Mar 2018
When i tested it the result of viscircles (i.e. f) is a hggroup object containing 2 Lines, though I'm not sure why, both lines show the circle, but seem to have slightly different positional data.
You could edit each one with e.g.
F.Children(1).XData
F.Children(2).XData

Connectez-vous pour commenter.

Réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by