LayerArtistBase¶
-
class
glue.core.layer_artist.LayerArtistBase(layer)[source]¶ Bases:
glue.utils.misc.PropertySetMixinCreate a new LayerArtist
Parameters: Data or Subset to draw
layer :
Dataor glue.core.subset.SubsetAttributes Summary
disabled_messageReturns why a layer is disabled enabledlayerThe Data or Subset visualized in this layer visiblezorderMethods Summary
clear()Clear the visulaization for this layer disable(reason)Disable the layer for a particular reason. disable_invalid_attributes(*attributes)Disable a layer because visualization depends on knowing a set force_update(*args, **kwargs)Sets the _changed flag to true, and calls update. redraw()Re-render the plot update([view])Sync the visual appearance of the layer, and redraw Attributes Documentation
-
disabled_message¶ Returns why a layer is disabled
-
enabled= None¶
-
layer¶ The Data or Subset visualized in this layer
-
visible= None¶
-
zorder= None¶
Methods Documentation
-
disable(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: reason : str
A short explanation for why the layer can’t be drawn. Used by the UI
-
disable_invalid_attributes(*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: attributes : sequence of ComponentIDs
-