cache_axes

glue.utils.matplotlib.cache_axes(axes, toolbar)[source]

Set up caching for an axes object.

After this, cached renders will be used to quickly re-render an axes during window resizing or interactive pan/zooming.

This function returns an AxesCache instance.

Parameters:

axes : ~matplotlib.axes.Axes

The axes to cache

toolbar : ~glue.viewers.common.qt.toolbar.GlueToolbar

The toolbar managing the axes’ canvas