How to close the extra legend added by comet fun?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
ziyong han
el 8 de Mzo. de 2019
Comentada: KSSV
el 8 de Mzo. de 2019
I use the comet fun to trace my simdata, however the comet fun added the extra legend data to my fig, see the attached fig that "data1, data2, data3" were added when animating.
How should I close the extra "data1, data2, data3" at the beginning of the animation? BTW, I know how to close it when the animation is finished.
0 comentarios
Respuesta aceptada
KSSV
el 8 de Mzo. de 2019
Editada: KSSV
el 8 de Mzo. de 2019
x = 1:100 ;
y = rand(size(x)) ;
figure
h = plot(x,y) ;
hold on
comet(rand(size(x))) ;
legend(h,'one')
4 comentarios
KSSV
el 8 de Mzo. de 2019
as of now to make the plot fast..you can run the loop by skipping some values...you need not to run for every point.
Más 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!