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

Method add_data_point

src/pptx/chart/data.py:755–762  ·  view source on GitHub ↗

Return an XyDataPoint object newly created with values *x* and *y*, and appended to this sequence.

(self, x, y, number_format=None)

Source from the content-addressed store, hash-verified

753 """
754
755 def add_data_point(self, x, y, number_format=None):
756 """
757 Return an XyDataPoint object newly created with values *x* and *y*,
758 and appended to this sequence.
759 """
760 data_point = XyDataPoint(self, x, y, number_format)
761 self.append(data_point)
762 return data_point
763
764
765class BubbleSeriesData(XySeriesData):

Calls 2

XyDataPointClass · 0.85
appendMethod · 0.45

Tested by 9

populate_fixtureMethod · 0.36
populate_fixtureMethod · 0.36
rewrite_fixtureMethod · 0.36
rewrite_fixtureMethod · 0.36
make_bubble_chart_dataFunction · 0.36
make_xy_chart_dataFunction · 0.36