wait for plot to finish

47 次查看(过去 30 天)
Stephan He
Stephan He 2016-4-28
评论: Constantino 2021-12-29
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

采纳的回答

Jan
Jan 2016-4-28
What about drawnow?
  2 个评论
Stephan He
Stephan He 2016-4-28
Thanks Jan. Its kind of contraintuitive to stop running by an update function, but it works ;)
Constantino
Constantino 2021-12-29
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.

请先登录,再进行评论。

更多回答(1 个)

Ilham Hardy
Ilham Hardy 2016-4-28
Hi,
Perhaps you will need this? waitfor()
  1 个评论
Stephan He
Stephan He 2016-4-28
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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by