arviz_plots.backend.plotly.legend#
- arviz_plots.backend.plotly.legend(target, kwarg_list, label_list, title=None, artist_type='line', artist_kwargs=None, **kwargs)[source]#
Generate a legend with plotly.
- Parameters:
- target
plotly.graph_objects.Figure
The figure to add the legend to
- 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
- **kwargs
dict
Additional kwargs passed to legend configuration
- target
- Returns:
None
The legend is added to the target figure inplace