wait for plot to finish

45 visualizaciones (últimos 30 días)
Stephan He
Stephan He el 28 de Abr. de 2016
Comentada: Constantino el 29 de Dic. de 2021
Hello,
I am plotting quite a huge amount of data points using the scatter3 function in a GUI. Doing so the program keeps on running while the data plot isnt finished yet. (I tested it with tic/toc before and after the plot which gave me way to short timings)
Is there a way to stop matlab from continuing until the plot is finished and visible?
Best Regards, Stephan

Respuesta aceptada

Jan
Jan el 28 de Abr. de 2016
What about drawnow?
  2 comentarios
Stephan He
Stephan He el 28 de Abr. de 2016
Thanks Jan. Its kind of contraintuitive to stop running by an update function, but it works ;)
Constantino
Constantino el 29 de Dic. de 2021
Can you give more details on this?
I have the problem that each plot draw to screen seems to slow down the total running time of the code. Id like to be able to wait for allk the code to execute and then draw to screen each figure once.
The visible property does not work for me.

Iniciar sesión para comentar.

Más respuestas (1)

Ilham Hardy
Ilham Hardy el 28 de Abr. de 2016
Hi,
Perhaps you will need this? waitfor()
  1 comentario
Stephan He
Stephan He el 28 de Abr. de 2016
Hi Ilham,
I did consider this function but for now I couldnt get it to work: If i just use the call with the object, it actually waits for me to close the axes, which I will not. Then I dont know how to utilize the second call option with the changing property since I couldnt figure out any property that would change when finishing the plot.
Could you explain you idea more in detail please?
Best Regards, Stephan

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by