Paper Office
paper-pptxAPI referenceoxml.chart.chart

CT_PlotArea

paper-pptx 0.2.0 API reference

<c:plotArea> element.

Attributes

catAx

attributecatAx
= ZeroOrMore('c:catAx')

last_ser

attributelast_ser

Return the last <c:ser> element in the last xChart element, based on series order (not necessarily the same element as document order).

next_idx

attributenext_idx

Return the next available c:ser/c:idx value within the scope of this chart, the maximum idx value found on existing series, incremented by one.

next_order

attributenext_order

Return the next available c:ser/c:order value within the scope of this chart, the maximum order value found on existing series, incremented by one.

sers

attributesers

Return a sequence containing all the c:ser elements in this chart, ordered first by the document order of the containing xChart element, then by their ordering within the xChart element (not necessarily document order).

valAx

attributevalAx
= ZeroOrMore('c:valAx')

xCharts

attributexCharts

Return a sequence containing all the c:{x}Chart elements in this chart, in document order.

xml

attributexmlstr

XML string for this element, suitable for testing purposes.

Pretty printed for readability and without an XML declaration at the top.

Functions

first_child_found_in

funcfirst_child_found_in(*tagnames: str) -> _Element | None

First child with tag in tagnames, or None if not found.

paramtagnamesstr
= ()

Returns

lxml.etree._Element | None

insert_element_before

funcinsert_element_before(elm: ElementBase, *tagnames: str)
paramelmElementBase
paramtagnamesstr
= ()

iter_sers

funciter_sers()

Generate each of the c:ser elements in this chart, ordered first by the document order of the containing xChart element, then by their ordering within the xChart element (not necessarily document order).

iter_xCharts

funciter_xCharts()

Generate each xChart child element in document.

remove_all

funcremove_all(*tagnames: str) -> None

Remove child elements with tagname (e.g. "a:p") in tagnames.

paramtagnamesstr
= ()

Returns

None

xpath

funcxpath(xpath_str: str) -> Any

Override of lxml _Element.xpath() method.

Provides standard Open XML namespace mapping (nsmap) in centralized location.

paramxpath_strstr

Returns

typing.Any

On this page