arviz_plots.backend.plotly.legend#
- arviz_plots.backend.plotly.legend(plot_collection, kwarg_list, label_list, title=None, visual_type='line', visual_kwargs=None, legend_dim=None, update_visuals=True, **kwargs)[source]#
Generate a legend with plotly.
- Parameters:
- plot_collection
PlotCollection The PlotCollection for which a legend should be generated
- kwarg_list
list List of style dictionaries for each legend entry
- label_list
list List of labels for each legend entry
- title
str, optional Title of the legend
- artist_type
str, optional Type of visual to use for legend entries. Currently only “line” is supported.
- artist_kwargs
dict, optional Additional kwargs passed to all visuals
- legend_dim
strortupleofstr, optional - update_visualsbool, default
True - **kwargs
dict Additional kwargs passed to legend configuration
- plot_collection
- Returns:
NoneThe legend is added to the target figure inplace