LayerArtistBase¶
-
class
glue.core.layer_artist.LayerArtistBase(layer)[source]¶ Bases:
glue.utils.misc.PropertySetMixinCreate a new LayerArtist
Attributes Summary
Returns why a layer is disabled
The Data or Subset visualized in this layer
Methods Summary
clear(self)Clear the visualization for this layer
disable(self, reason)Disable the layer for a particular reason.
Disable a layer because the subset mask cannot be computed.
disable_invalid_attributes(self, \*attributes)Disable a layer because visualization depends on knowing a set of ComponentIDs that cannot be derived from a dataset or subset
enable(self)force_update(self, \*args, \*\*kwargs)Sets the _changed flag to true, and calls update.
get_layer_color(self)redraw(self)Re-render the plot
remove(self)Remove the visualization for this layer.
update(self)Sync the visual appearance of the layer, and redraw
Attributes Documentation
-
enabled= None¶
-
visible= None¶
-
zorder= None¶
Methods Documentation
-
disable(self, reason)[source]¶ Disable the layer for a particular reason.
Layers should only be disabled when drawing is impossible, e.g. because a subset cannot be applied to a dataset.
- Parameters
- reasonstr
A short explanation for why the layer can’t be drawn. Used by the UI
-
disable_incompatible_subset(self)[source]¶ Disable a layer because the subset mask cannot be computed.
Automatically generates a disabled message.
-
disable_invalid_attributes(self, *attributes)[source]¶ Disable a layer because visualization depends on knowing a set of ComponentIDs that cannot be derived from a dataset or subset
Automatically generates a disabled message.
- Parameters
- attributessequence of ComponentIDs
-
force_update(self, *args, **kwargs)[source]¶ Sets the _changed flag to true, and calls update.
Force an update of the layer, overriding any caching that might be going on for speed
-