Use the code profiler to determine which functions contribute the most time to execution time.
You can improve the execution speed of graphics code by minimizing the effect of two factors that contribute to total execution time.
Graphics objects are complex structures that store information, listen for certain events to occur, and can cause changes to other objects to accommodate their existence.
When you search for handles, MATLAB® must search the object hierarchy to find matching handles, which is time-consuming.
MATLAB graphics is implemented using multiple threads of execution.
Certain properties have dependencies on the value of other properties.
If only a small portion of the data defining a graphics scene changes with each update of the screen, you can improve performance by updating only the data that changes.
To maximize graphing performance, use low-level functions and disable certain automatic features.
Improve performance by taking advantage of the fact that graphics hardware can apply transforms to the data.
All systems support most of the common MATLAB graphics features.
MATLAB can encounter low-level issues when creating graphics on your system.