MatplotlibLayerArtist#

class glue.viewers.matplotlib.layer_artist.MatplotlibLayerArtist(axes, viewer_state, layer_state=None, layer=None)[source]#

Bases: LayerArtist

Create a new LayerArtist

Parameters:
layerData or Subset

Data or Subset to draw

layerData or glue.core.subset.Subset

Attributes Summary

visible

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

zorder

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

Methods Summary

clear()

Clear the visualization for this layer

get_handle_legend()

get_layer_color()

notify_end_computation()

Broadcast a message to indicate that this layer artist has ended a computation (typically used in conjunction with asynchronous operations).

notify_start_computation()

Broadcast a message to indicate that this layer artist has started a computation (typically used in conjunction with asynchronous operations).

redraw()

Re-render the plot

remove()

Remove the visualization for this layer.

Attributes Documentation

visible#

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

zorder#

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

Methods Documentation

clear()[source]#

Clear the visualization for this layer

get_handle_legend()[source]#
get_layer_color()[source]#
notify_end_computation()[source]#

Broadcast a message to indicate that this layer artist has ended a computation (typically used in conjunction with asynchronous operations).

notify_start_computation()[source]#

Broadcast a message to indicate that this layer artist has started a computation (typically used in conjunction with asynchronous operations).

redraw()[source]#

Re-render the plot

remove()[source]#

Remove the visualization for this layer.

This is called when the layer artist is removed for good from the viewer. It defaults to calling clear, but can be overriden in cases where clear and remove should be different.