Graphics Previous page   Next Page

Optimizing Graphics Performance

This section discusses techniques that can help increase the speed with which MATLAB creates graphs. These techniques generally apply to cases where you are creating many graphs of similar data and can therefore improve rendering speed by preventing MATLAB from performing unnecessary operation.

Whether a given technique improves performance depends on the particular application. The profile function can help you determine where your code is consuming the most time.

General Performance Guidelines

The following list provides some general guidelines for optimizing performance:

The remainder of this section provides more details on these and other techniques.

See Disable Automatic Modes for information on optimizing the use of axes objects.

See Changing Graph Data Rapidly for an example of techniques for interactive plotting.

See Performance of Bit-Mapped Images for information on optimizing the use of image objects.

See Performance of Patch Objects for information on optimizing the use of patch objects.

See Performance of Surface Objects for information on optimizing the use of surface objects.


Previous page  Example -- Using Function Handles in GUIs Disable Automatic Modes Next page

© 1994-2005 The MathWorks, Inc.