MCPcopy Create free account
hub / github.com/scanny/python-pptx / legend

Method legend

src/pptx/chart/chart.py:133–141  ·  view source on GitHub ↗

A |Legend| object providing access to the properties of the legend for this chart.

(self)

Source from the content-addressed store, hash-verified

131
132 @property
133 def legend(self):
134 """
135 A |Legend| object providing access to the properties of the legend
136 for this chart.
137 """
138 legend_elm = self._chartSpace.chart.legend
139 if legend_elm is None:
140 return None
141 return Legend(legend_elm)
142
143 @lazyproperty
144 def plots(self):

Callers

nothing calls this directly

Calls 1

LegendClass · 0.90

Tested by

no test coverage detected