Why does my scatter plot take so long to plot, even though tic toc says the calculation is fast?
4 次查看(过去 30 天)
显示 更早的评论
I have made a GUI that plots data as a scatter plot when the user hits a button on the GUI. I have profiled the callback using matlab profiler and its shows that it runs really fast (0.2 seconds). tic toc for the callback also shows it is fast. Why then does it take ~5 seconds for the plot on the GUI to show the scatter data? It seems to get slower and slower the more data there is, even though the profiled time for the callback only slightly increases with more data.
0 个评论
回答(1 个)
Image Analyst
2014-12-31
Try putting a "drawnow" right after you want to force the display to refresh/update/repaint.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!