ScatterLegendItem#

ScatterLegendItem#

Constructor#

ScatterLegendItem(graphic[, label, ...])

The legend representation of a ScatterGraphic, created with ScatterGraphic.create_legend_item().

Properties#

ScatterLegendItem.cmap_transform_labels

get or set the label of each cmap_transform value of a qualitative colormap

ScatterLegendItem.colorbar

the colorbar of this item, set when the graphic uses a quantitative colormap

ScatterLegendItem.elements

the elements of this item, empty when it is shown as a colorbar

ScatterLegendItem.figure

the figure this container is drawn in

ScatterLegendItem.graphic

the graphic this item represents

ScatterLegendItem.label

get or set the label of this item, the graphic's name is used if it is not set

ScatterLegendItem.legend

the legend this item has been added to

ScatterLegendItem.markers_labels

get or set the label of each marker

ScatterLegendItem.sizes_labels

get or set the label of each point size

Methods#

ScatterLegendItem.check_graphic_mode()

Make the item again if the graphic switched between uniform colors, per-vertex colors and a colormap, which replaces the feature instance and clears its handlers, so there is no event to follow.

ScatterLegendItem.draw()

pushes and pops the ID to keep identical containers unique within one frame

ScatterLegendItem.update()

Implement your GUI here and it will be drawn within the host window