---
Product: Aspose.Slides
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/python/Axis
---

# Axis

## Overview

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

Encapsulates the object that represents a chart's axis.

This class provides 1 method for working with Axis objects in Python programs.
Available methods include: `set_category_axis_type_automatically`.
All public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: `actual_major_unit`, `actual_major_unit_scale`, `actual_max_value`, `actual_min_value`, `actual_minor_unit`, `actual_minor_unit_scale`, and 46 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `axis_between_categories` | `bool` | Read/Write | Gets or sets the axis between categories. |
| `category_axis_type` | `CategoryAxisType` | Read/Write | Gets or sets the category axis type. |
| `cross_type` | `CrossesType` | Read/Write | Gets or sets the cross type. |
| `cross_at` | `float` | Read/Write | Gets or sets the cross at. |
| `display_unit` | `DisplayUnitType` | Read/Write | Gets or sets the display unit. |
| `max_value` | `float` | Read/Write | Gets or sets the max value. |
| `is_automatic_max_value` | `bool` | Read/Write | Gets or sets the is automatic max value. |
| `min_value` | `float` | Read/Write | Gets or sets the min value. |
| `is_automatic_min_value` | `bool` | Read/Write | Gets or sets the is automatic min value. |
| `major_unit` | `float` | Read/Write | Gets or sets the major unit. |
| `is_automatic_major_unit` | `bool` | Read/Write | Gets or sets the is automatic major unit. |
| `minor_unit` | `float` | Read/Write | Gets or sets the minor unit. |
| `is_automatic_minor_unit` | `bool` | Read/Write | Gets or sets the is automatic minor unit. |
| `is_logarithmic` | `bool` | Read/Write | Gets or sets the is logarithmic. |
| `log_base` | `float` | Read/Write | Gets or sets the log base. |
| `is_plot_order_reversed` | `bool` | Read/Write | Gets or sets the is plot order reversed. |
| `is_visible` | `bool` | Read/Write | Gets or sets the is visible. |
| `position` | `AxisPositionType` | Read/Write | Gets or sets the position. |
| `major_tick_mark` | `TickMarkType` | Read/Write | Gets or sets the major tick mark. |
| `minor_tick_mark` | `TickMarkType` | Read/Write | Gets or sets the minor tick mark. |
| `tick_label_position` | `TickLabelPositionType` | Read/Write | Gets or sets the tick label position. |
| `tick_label_spacing` | `int` | Read/Write | Gets or sets the tick label spacing. |
| `is_automatic_tick_label_spacing` | `bool` | Read/Write | Gets or sets the is automatic tick label spacing. |
| `tick_marks_spacing` | `int` | Read/Write | Gets or sets the tick marks spacing. |
| `is_automatic_tick_marks_spacing` | `bool` | Read/Write | Gets or sets the is automatic tick marks spacing. |
| `tick_label_rotation_angle` | `float` | Read/Write | Gets or sets the tick label rotation angle. |
| `label_offset` | `int` | Read/Write | Gets or sets the label offset. |
| `number_format` | `str` | Read/Write | Gets or sets the number format. |
| `is_number_format_linked_to_source` | `bool` | Read/Write | Gets or sets the is number format linked to source. |
| `has_title` | `bool` | Read/Write | Gets or sets the has title. |
| `show_major_grid_lines` | `bool` | Read | Gets the show major grid lines. |
| `show_minor_grid_lines` | `bool` | Read | Gets the show minor grid lines. |
| `major_unit_scale` | `TimeUnitType` | Read/Write | Gets or sets the major unit scale. |
| `minor_unit_scale` | `TimeUnitType` | Read/Write | Gets or sets the minor unit scale. |
| `base_unit_scale` | `TimeUnitType` | Read/Write | Gets or sets the base unit scale. |
| `actual_max_value` | `float` | Read | Gets the actual max value. |
| `actual_min_value` | `float` | Read | Gets the actual min value. |
| `actual_major_unit` | `float` | Read | Gets the actual major unit. |
| `actual_minor_unit` | `float` | Read | Gets the actual minor unit. |
| `actual_major_unit_scale` | `TimeUnitType` | Read | Gets the actual major unit scale. |
| `actual_minor_unit_scale` | `TimeUnitType` | Read | Gets the actual minor unit scale. |
| `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. |
| `as_i_chart_component` | `IChartComponent` | Read | Returns IChartComponent interface. |
| `chart` | `IChart` | Read | Gets the chart. |
| `as_i_slide_component` | `ISlideComponent` | Read | Gets the as i slide component. |
| `slide` | `IBaseSlide` | Read | Gets the slide. |
| `as_i_presentation_component` | `IPresentationComponent` | Read | Gets the as i presentation component. |
| `presentation` | `IPresentation` | Read | Gets the presentation. |

## Methods

| Signature | Description |
|-----------|-------------|
| `set_category_axis_type_automatically()` | Configures the axis to determine its category type automatically |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)