MCPcopy Index your code
hub / github.com/plotly/plotly.py / legend

Method legend

plotly/graph_objs/_bar.py:575–591  ·  view source on GitHub ↗

Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. The 'legend' property is an identifier

(self)

Source from the content-addressed store, hash-verified

573
574 @property
575 def legend(self):
576 """
577 Sets the reference to a legend to show this trace in.
578 References to these legends are "legend", "legend2", "legend3",
579 etc. Settings for these legends are set in the layout, under
580 `layout.legend`, `layout.legend2`, etc.
581
582 The 'legend' property is an identifier of a particular
583 subplot, of type 'legend', that may be specified as:
584 - the string 'legend' optionally followed by an integer >= 1
585 (e.g. 'legend', 'legend1', 'legend2', 'legend3', etc.)
586
587 Returns
588 -------
589 str
590 """
591 return self["legend"]
592
593 @legend.setter
594 def legend(self, val):

Calls

no outgoing calls