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
axesmatplotlib.axes.Axes

The axes to cache

toolbarglue.viewers.common.qt.toolbar.BasicToolbar

The toolbar managing the axes’ canvas