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

Method chart_title

src/pptx/chart/chart.py:69–77  ·  view source on GitHub ↗

A |ChartTitle| object providing access to title properties. Calling this property is destructive in the sense it adds a chart title element (`c:title`) to the chart XML if one is not already present. Use :attr:`has_title` to test for presence of a chart title non-des

(self)

Source from the content-addressed store, hash-verified

67
68 @property
69 def chart_title(self):
70 """A |ChartTitle| object providing access to title properties.
71
72 Calling this property is destructive in the sense it adds a chart
73 title element (`c:title`) to the chart XML if one is not already
74 present. Use :attr:`has_title` to test for presence of a chart title
75 non-destructively.
76 """
77 return ChartTitle(self._element.get_or_add_title())
78
79 @property
80 def chart_type(self):

Callers

nothing calls this directly

Calls 2

ChartTitleClass · 0.85
get_or_add_titleMethod · 0.80

Tested by

no test coverage detected