Paper Office
paper-pptxAPI referenceenum.chart

XL_TICK_LABEL_POSITION

paper-pptx 0.2.0 API reference

Specifies the position of tick-mark labels on a chart axis.

Example::

from pptx.enum.chart import XL_TICK_LABEL_POSITION

category_axis = chart.category_axis category_axis.tick_label_position = XL_TICK_LABEL_POSITION.LOW

MS API Name: XlTickLabelPosition

http://msdn.microsoft.com/en-us/library/office/ff822561.aspx

Attributes

HIGH

attributeHIGH
= (-4127, 'high', 'Top or right side of the chart.')

Top or right side of the chart.

LOW

attributeLOW
= (-4134, 'low', 'Bottom or left side of the chart.')

Bottom or left side of the chart.

NEXT_TO_AXIS

attributeNEXT_TO_AXIS
= (4, 'nextTo', 'Next to axis (where axis is not at either side of the chart).')

Next to axis (where axis is not at either side of the chart).

NONE

attributeNONE
= (-4142, 'none', 'No tick labels.')

No tick labels.

xml_value

attributexml_valuestr | None

Functions

from_xml

funcfrom_xml(xml_value: str) -> Self

Enumeration member corresponding to XML attribute value xml_value.

Raises ValueError if xml_value is the empty string ("") or is not an XML attribute value registered on the enumeration. Note that enum members that do not correspond to one of the defined values for an XML attribute have xml_value == "". These "return-value only" members cannot be automatically mapped from an XML attribute value and must be selected explicitly by code, based on the appropriate conditions.

Example::

WD_PARAGRAPH_ALIGNMENT.from_xml("center") WD_PARAGRAPH_ALIGNMENT.CENTER

paramxml_valuestr

Returns

typing_extensions.Self

to_xml

functo_xml(value: int | _T) -> str

XML value of this enum member, generally an XML attribute value.

paramvalueint | _T

Returns

str

validate

funcvalidate(value: _T)

Raise ValueError if value is not an assignable value.

paramvalue_T

On this page