graphics performance 2019a vs 2016b

2 views (last 30 days)
running on a core I7, 16 GB ram 64 bit laptop. I have matlab m-files making figure plots with a couple dozen line handles encompassing 100's of thousands of points. 2016b performs faster in plotting them, while 2019a seems to hesitate between each set of lines. m-file code is no different between the two versions. the plots make use of the 'UserData' and 'Tag' functionality to store data in the lines, for use in extracting the data via selection/callbacks. Any obvious reason why 2019a is slower than 2016b in plotting?

Accepted Answer

Yair Altman
Yair Altman on 26 Apr 2020
R2019a uses the integrated axes toolbar, which constantly monitors mouse movements in order to generate data tips on-the-fly. If you turn off this functionality you'll probably discover that interactivity becomes much "snappier".
  1 Comment
Christopher
Christopher on 28 Apr 2020
thanks Yair, this did help. I'd been told of this before, but never really ran into the issue, so had not made it part of regular axes calls. I will from now on. I use a panel and cover it with tabs, similar to your example, but only populate the first two tabs, but each with about 20 line handles, each of which can have hundreds of thousands of points. The temporal performance was further slowed by what profiler found as unncessary calls to 'figure' and drawnow while prcessing each of the two tabs. (likely from debugging earlier on). Removing those sped up part of the code, and setting the interactivity to empty set improved it further. Thanks again, appreciate your expertise.

Sign in to comment.

More Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!