add#

Legend.add(item)[source]#

Add an item to the legend.

Parameters:

item (LegendItem | ImguiColorbar) – a graphic’s legend item, created with Graphic.create_legend_item(), or a colorbar