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

Class Point

src/pptx/chart/point.py:54–91  ·  view source on GitHub ↗

Provides access to the properties of an individual data point in a series, such as the visual properties of its marker and the text and font of its data label.

Source from the content-addressed store, hash-verified

52
53
54class Point(object):
55 """
56 Provides access to the properties of an individual data point in
57 a series, such as the visual properties of its marker and the text and
58 font of its data label.
59 """
60
61 def __init__(self, ser, idx):
62 super(Point, self).__init__()
63 self._element = ser
64 self._ser = ser
65 self._idx = idx
66
67 @lazyproperty
68 def data_label(self):
69 """
70 The |DataLabel| object representing the label on this data point.
71 """
72 return DataLabel(self._ser, self._idx)
73
74 @lazyproperty
75 def format(self):
76 """
77 The |ChartFormat| object providing access to the shape formatting
78 properties of this data point, such as line and fill.
79 """
80 dPt = self._ser.get_or_add_dPt_for_point(self._idx)
81 return ChartFormat(dPt)
82
83 @lazyproperty
84 def marker(self):
85 """
86 The |Marker| instance for this point, providing access to the visual
87 properties of the data point marker, such as fill and line. Setting
88 these properties overrides any value set at the series level.
89 """
90 dPt = self._ser.get_or_add_dPt_for_point(self._idx)
91 return Marker(dPt)
92
93
94class XyPoints(_BasePoints):

Callers 4

data_label_fixtureMethod · 0.90
format_fixtureMethod · 0.90
marker_fixtureMethod · 0.90
__getitem__Method · 0.85

Calls

no outgoing calls

Tested by 3

data_label_fixtureMethod · 0.72
format_fixtureMethod · 0.72
marker_fixtureMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…