aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/pptx/dml/chtfmt.py
diff options
context:
space:
mode:
authorS. Solomon Darnell2025-03-28 21:52:21 -0500
committerS. Solomon Darnell2025-03-28 21:52:21 -0500
commit4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch)
treeee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/pptx/dml/chtfmt.py
parentcc961e04ba734dd72309fb548a2f97d67d578813 (diff)
downloadgn-ai-master.tar.gz
two version of R2R are hereHEADmaster
Diffstat (limited to '.venv/lib/python3.12/site-packages/pptx/dml/chtfmt.py')
-rw-r--r--.venv/lib/python3.12/site-packages/pptx/dml/chtfmt.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/pptx/dml/chtfmt.py b/.venv/lib/python3.12/site-packages/pptx/dml/chtfmt.py
new file mode 100644
index 00000000..c37e4844
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/pptx/dml/chtfmt.py
@@ -0,0 +1,40 @@
+"""|ChartFormat| and related objects.
+
+|ChartFormat| acts as proxy for the `spPr` element, which provides visual shape properties such as
+line and fill for chart elements.
+"""
+
+from __future__ import annotations
+
+from pptx.dml.fill import FillFormat
+from pptx.dml.line import LineFormat
+from pptx.shared import ElementProxy
+from pptx.util import lazyproperty
+
+
+class ChartFormat(ElementProxy):
+ """
+ The |ChartFormat| object provides access to visual shape properties for
+ chart elements like |Axis|, |Series|, and |MajorGridlines|. It has two
+ properties, :attr:`fill` and :attr:`line`, which return a |FillFormat|
+ and |LineFormat| object respectively. The |ChartFormat| object is
+ provided by the :attr:`format` property on the target axis, series, etc.
+ """
+
+ @lazyproperty
+ def fill(self):
+ """
+ |FillFormat| instance for this object, providing access to fill
+ properties such as fill color.
+ """
+ spPr = self._element.get_or_add_spPr()
+ return FillFormat.from_fill_parent(spPr)
+
+ @lazyproperty
+ def line(self):
+ """
+ The |LineFormat| object providing access to the visual properties of
+ this object, such as line color and line style.
+ """
+ spPr = self._element.get_or_add_spPr()
+ return LineFormat(spPr)