Sub topic 4
Choosing a Scale for the Axes
Assume you can compare positive and negative numbers, place them on a number line, and perform basic arithmetic. This chapter focuses on choosing intervals that make plotted data easy to read.
What an axis scale shows
A scale tells you how numerical values correspond to positions on an axis. Tick marks divide the axis into equal intervals. Each interval must represent the same numerical change throughout that axis.
For example, an axis might have labels
- -10, -5, 0, 5, 10
- 0, 2, 4, 6, 8
- 0, 0.5, 1.0, 1.5
The physical spacing between neighboring labels should be equal. If the distance from 0 to 5 is the same as the distance from 5 to 10, the scale is consistent.
The x-axis and y-axis may use different numerical intervals. For example, the x-axis could increase by 1 while the y-axis increases by 10. However, label the intervals clearly so readers do not confuse the two scales.
Choosing useful limits and intervals
Choose axis limits that include every point and leave a little room around the data. Then choose an interval that lets readers estimate coordinates without overcrowding the graph.
Use this process:
- Find the smallest and largest x-values and y-values.
- Choose limits slightly beyond those values.
- Select simple intervals such as 1, 2, 5, 10, 20, or 50.
- Mark and label enough tick marks to read the points.
- Check that the scale is uniform.
Suppose the points have x-values from -3 to 8 and y-values from 12 to 47. A useful choice might be:
| Axis | Limits | Interval |
|---|---|---|
| x-axis | -5 to 10 | 1 |
| y-axis | 0 to 50 | 10 |
The x-axis uses smaller intervals because its values cover a smaller range. The y-axis uses intervals of 10 because labeling every integer would make the graph crowded.
Do not choose limits that cut off a point. Also avoid a scale that makes the graph nearly empty. A graph from 0 to 1,000 is difficult to read if all points lie between 12 and 25.
Equal spacing matters
If the labels 0, 10, 20, and 30 are equally spaced, the distance from 10 to 20 represents the same visual length as the distance from 20 to 30. A point halfway between 10 and 20 has value 15.
A broken axis can skip a large unused range, but it must be marked clearly. In a basic coordinate graph, a continuous scale is usually less confusing.
Checking a graph with Python
This example uses equal visual scaling on both axes. The x-axis interval is 1, and the y-axis interval is 5.
import matplotlib.pyplot as plt
points = [(-3, 10), (0, 25), (4, 15), (8, 40)]
x_values, y_values = zip(*points)
fig, ax = plt.subplots()
ax.scatter(x_values, y_values)
ax.set_xlim(-5, 10)
ax.set_ylim(0, 45)
ax.set_xticks(range(-5, 11, 1))
ax.set_yticks(range(0, 46, 5))
ax.set_xlabel("x")
ax.set_ylabel("y")
ax.grid(True)
plt.show()The limits include all points. The grid makes the chosen intervals visible, and the axis labels identify which numbers belong to each direction.
Exercise
The points have x-values from 14 to 39 and y-values from -6 to 18. Suggest practical limits and intervals for both axes.
Show answer
One reasonable choice is x from 10 to 40 with intervals of 5, and y from -10 to 20 with intervals of 5. Other consistent choices can also work if all points fit and the labels remain readable.