# Shared Axis

*noun*

say it: **“SHAIRD AK-sis”** **/ˈʃɛrd ˈæksɪs/**

One scale used by charts placed side by side, so their bars or lines can be compared by eye.

## What is a **shared axis**?

A **shared axis** is one axis scale used by charts side by side, so a bar of the same height means the same amount
in each and they can be compared by eye. Without it, each chart picks its own scale and a smaller year can look as
big as a larger one.

```python
import matplotlib.pyplot as plt
fig, (left, right) = plt.subplots(1, 2, sharey=True)   # both charts get one y-axis scale
left.bar(by_2024.index, by_2024.values)
right.bar(by_2025.index, by_2025.values)
```

## In a sentence

- “The two charts got a **shared axis** so readers wouldn't be fooled.”
- “With a **shared axis**, the 2024 bars were plainly shorter than 2025's.”

Level: Journeyman · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=3)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/shared-axis
