Borrar filtros
Borrar filtros

How to redraw 3D figure having controls without disturbing controls?

2 visualizaciones (últimos 30 días)
Hi folks,
I have a 3D figure on which I placed some popup menus. The plot is a function of whatever the user pulls down from the popups, so how do I redraw the whole figure to update it (using a function), without destroying the figure, or creating many duplicate figures?
Thank you for helping me.
Dave

Respuesta aceptada

Walter Roberson
Walter Roberson el 31 de Mayo de 2016
Once you have a surf or plot3, to draw the new plot, update the XData, YData, ZData properties of the graphics object.
Or at most use cla() to clear the axes. Do not use clf().
  1 comentario
David Pesetsky
David Pesetsky el 31 de Mayo de 2016
Thanks. cla() was easier since there's too much complicated data on the figure, and it's easier to recalculate the whole thing anyway.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by