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
| Name | Type | Access | Description |
|---|---|---|---|
axis_between_categories | bool | Read | Indicates whether the axis is placed between categories |
category_axis_type | CategoryAxisType | Read | Specifies the type of the category axis |
cross_type | CrossesType | Read | Defines how the axis crosses the perpendicular axis |
cross_at | float | Read | Sets the value at which the axis crosses the perpendicular axis |
display_unit | DisplayUnitType | Read | Selects the unit used to display axis values |
max_value | float | Read | Defines the maximum value shown on the axis |
is_automatic_max_value | bool | Read | Indicates if the maximum value is calculated automatically |
min_value | float | Read | Defines the minimum value shown on the axis |
is_automatic_min_value | bool | Read | Indicates if the minimum value is calculated automatically |
major_unit | float | Read | Sets the interval between major tick marks |
is_automatic_major_unit | bool | Read | Indicates if the major unit is calculated automatically |
minor_unit | float | Read | Sets the interval between minor tick marks |
is_automatic_minor_unit | bool | Read | Indicates if the minor unit is calculated automatically |
is_logarithmic | bool | Read | Specifies whether the axis scale is logarithmic |
log_base | float | Read | Defines the base of the logarithmic scale |
is_plot_order_reversed | bool | Read | Indicates whether data points are plotted in reverse order |
is_visible | bool | Read | Determines whether the axis is displayed |
position | AxisPositionType | Read | Specifies the axis placement relative to the chart area |
major_tick_mark | TickMarkType | Read | Defines the style of major tick marks |
minor_tick_mark | TickMarkType | Read | Defines the style of minor tick marks |
tick_label_position | TickLabelPositionType | Read | Sets the position of tick labels relative to the axis |
tick_label_spacing | int | Read | Sets the number of categories between tick labels |
is_automatic_tick_label_spacing | bool | Read | Indicates if tick label spacing is calculated automatically |
tick_marks_spacing | int | Read | Sets the number of categories between tick marks |
is_automatic_tick_marks_spacing | bool | Read | Indicates if tick marks spacing is calculated automatically |
tick_label_rotation_angle | float | Read | Sets the rotation angle of tick labels |
label_offset | int | Read | Defines the offset distance of axis labels from the axis line |
number_format | str | Read | Specifies the numeric format string for axis labels |
is_number_format_linked_to_source | bool | Read | Indicates if the number format follows the source data |
has_title | bool | Read | Indicates whether the axis has an associated title |
show_major_grid_lines | bool | Read | |
show_minor_grid_lines | bool | Read | |
major_unit_scale | TimeUnitType | Read | |
minor_unit_scale | TimeUnitType | Read | |
base_unit_scale | TimeUnitType | Read | |
actual_max_value | float | Read | |
actual_min_value | float | Read | |
actual_major_unit | float | Read | |
actual_minor_unit | float | Read | |
actual_major_unit_scale | TimeUnitType | Read | |
actual_minor_unit_scale | TimeUnitType | Read | |
format | `` | Read | Returns the format of the axis. |
text_format | `` | Read | Returns the chart text format for axis labels. |
title | `` | Read | Gets the axis’ title. |
major_grid_lines_format | `` | Read | Returns the format of major gridlines. |
minor_grid_lines_format | `` | Read | Returns the format of minor gridlines. |
Methods
| Signature | Description |
|---|---|
set_category_axis_type_automatically() | Configures the axis to determine its category type automatically |