fastplotlib.ui.LegendItem#
- class LegendItem(graphic, label=None, cmap_transform_labels=None)[source]#
The legend representation of a graphic, created with
Graphic.create_legend_item().An item has one
LegendElementper labelled value of the graphic, or anImguiColorbarwhen the graphic uses a quantitative colormap. It follows the graphic: when a feature it represents changes, its elements are made again.