필터 지우기
필터 지우기

wait for plot to finish

조회 수: 59 (최근 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