Selective retaining of graphic object in App Designer
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi! I am developing a code (rather re-writing an old code) in App Designer where I have displayed two grapahic objects: an image using pcolor and a contour (made of connected lines) using plot. Now, I want to set up a callback function using WindowButtonDownFcn and WindowButtonMotionFcn, where I can tweak the contour by adding more points, while keeping the displayed image intact.
I am experiencing a problem that I cannot animate the movement of the contour using WindowButtonMotionFcn if I use hold on. It does not clear the earlier plots, even when drawnow is used. I can animate the contour if I do not use hold on, but in that case the image is also gone and I have to redraw the image everytime during animation (which makes the process slow).
In earlier graphic system (prior to MATLAB 2014b), I have achieved the same by using hold on and drawnow when plotting. But, now it seems the selective updating of the graphic object is not working.
Any help will be appreciated. Thanks!
3 comentarios
J. Alex Lee
el 14 de Ag. de 2020
ok that's clearer. maybe i should have just suggested for you to post a minimal example of your old code.
Respuestas (0)
Ver también
Categorías
Más información sobre Animation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!