LayerArtist

class glue_jupyter.compat.LayerArtist(viewer_state, layer_state=None, layer=None)[source]

Bases: glue.core.layer_artist.LayerArtistBase

Attributes Summary

visible

A property that callback functions can be added to.

zorder

A property that callback functions can be added to.

Methods Summary

pop_changed_properties(self)

Return the names of properties on the viewer and layer state classes that have changed since the last call.

Attributes Documentation

visible

A property that callback functions can be added to.

When a callback property changes value, each callback function is called with information about the state change. Otherwise, callback properties behave just like normal instance variables.

CallbackProperties must be defined at the class level. Use the helper function add_callback() to attach a callback to a specific instance of a class with CallbackProperties

Parameters
default

The initial value for the property

docstringstr

The docstring for the property

getter, setterfunc

Custom getter and setter functions (advanced)

zorder

A property that callback functions can be added to.

When a callback property changes value, each callback function is called with information about the state change. Otherwise, callback properties behave just like normal instance variables.

CallbackProperties must be defined at the class level. Use the helper function add_callback() to attach a callback to a specific instance of a class with CallbackProperties

Parameters
default

The initial value for the property

docstringstr

The docstring for the property

getter, setterfunc

Custom getter and setter functions (advanced)

Methods Documentation

pop_changed_properties(self)[source]

Return the names of properties on the viewer and layer state classes that have changed since the last call.

Note that calling this method updates the underlying cache, so if it is called immediately after being called a first time, it will return an empty set the second time.