Axis

Overview

Axis is a class in Aspose.Slides FOSS for Python. Inherits from: IAxis.

Encapsulates the object that represents a chart’s axis.

Properties

NameTypeAccessDescription
axis_between_categoriesboolReadIndicates whether the axis is placed between categories
category_axis_typeCategoryAxisTypeReadSpecifies the type of the category axis
cross_typeCrossesTypeReadDefines how the axis crosses the perpendicular axis
cross_atfloatReadSets the value at which the axis crosses the perpendicular axis
display_unitDisplayUnitTypeReadSelects the unit used to display axis values
max_valuefloatReadDefines the maximum value shown on the axis
is_automatic_max_valueboolReadIndicates if the maximum value is calculated automatically
min_valuefloatReadDefines the minimum value shown on the axis
is_automatic_min_valueboolReadIndicates if the minimum value is calculated automatically
major_unitfloatReadSets the interval between major tick marks
is_automatic_major_unitboolReadIndicates if the major unit is calculated automatically
minor_unitfloatReadSets the interval between minor tick marks
is_automatic_minor_unitboolReadIndicates if the minor unit is calculated automatically
is_logarithmicboolReadSpecifies whether the axis scale is logarithmic
log_basefloatReadDefines the base of the logarithmic scale
is_plot_order_reversedboolReadIndicates whether data points are plotted in reverse order
is_visibleboolReadDetermines whether the axis is displayed
positionAxisPositionTypeReadSpecifies the axis placement relative to the chart area
major_tick_markTickMarkTypeReadDefines the style of major tick marks
minor_tick_markTickMarkTypeReadDefines the style of minor tick marks
tick_label_positionTickLabelPositionTypeReadSets the position of tick labels relative to the axis
tick_label_spacingintReadSets the number of categories between tick labels
is_automatic_tick_label_spacingboolReadIndicates if tick label spacing is calculated automatically
tick_marks_spacingintReadSets the number of categories between tick marks
is_automatic_tick_marks_spacingboolReadIndicates if tick marks spacing is calculated automatically
tick_label_rotation_anglefloatReadSets the rotation angle of tick labels
label_offsetintReadDefines the offset distance of axis labels from the axis line
number_formatstrReadSpecifies the numeric format string for axis labels
is_number_format_linked_to_sourceboolReadIndicates if the number format follows the source data
has_titleboolReadIndicates whether the axis has an associated title
show_major_grid_linesboolRead
show_minor_grid_linesboolRead
major_unit_scaleTimeUnitTypeRead
minor_unit_scaleTimeUnitTypeRead
base_unit_scaleTimeUnitTypeRead
actual_max_valuefloatRead
actual_min_valuefloatRead
actual_major_unitfloatRead
actual_minor_unitfloatRead
actual_major_unit_scaleTimeUnitTypeRead
actual_minor_unit_scaleTimeUnitTypeRead
format``ReadReturns the format of the axis.
text_format``ReadReturns the chart text format for axis labels.
title``ReadGets the axis’ title.
major_grid_lines_format``ReadReturns the format of major gridlines.
minor_grid_lines_format``ReadReturns the format of minor gridlines.

Methods

SignatureDescription
set_category_axis_type_automatically()Configures the axis to determine its category type automatically