DeferredDrawCallbackProperty

class glue.viewers.matplotlib.state.DeferredDrawCallbackProperty(default=None, docstring=None, getter=None, setter=None)[source]

Bases: glue.external.echo.CallbackProperty

A callback property where drawing is deferred until after notify has called all callback functions.

Parameters

default – The initial value for the property

Methods Summary

notify(self, \*args, \*\*kwargs)

Call all callback functions with the current value

Methods Documentation

notify(self, *args, **kwargs)[source]

Call all callback functions with the current value

Each callback will either be called using callback(new) or callback(old, new) depending on whether echo_old was set to True when calling add_callback()

Parameters
instance

The instance to consider

old

The old value of the property

new

The new value of the property