Skip to content

Commit 5c0d055

Browse files
authored
Cross-ref the two-scales and secondary-axes examples. (matplotlib#30366)
An end user can easily first find e.g. the twin axes example while looking for something like secondary axes, or vice versa. Make it easier for them to find whatever they really need.
1 parent 011d12f commit 5c0d055

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

galleries/examples/subplots_axes_and_figures/secondary_axis.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
`.axes.Axes.secondary_yaxis`. This secondary axis can have a different scale
1010
than the main axis by providing both a forward and an inverse conversion
1111
function in a tuple to the *functions* keyword argument:
12+
13+
See also :doc:`/gallery/subplots_axes_and_figures/two_scales` for the case
14+
where two scales are not related to one another, but independent.
1215
"""
1316

1417
import datetime

galleries/examples/subplots_axes_and_figures/two_scales.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212
Such Axes are generated by calling the `.Axes.twinx` method. Likewise,
1313
`.Axes.twiny` is available to generate Axes that share a *y* axis but
1414
have different top and bottom scales.
15+
16+
See also :doc:`/gallery/subplots_axes_and_figures/secondary_axis` for the case
17+
where the two scales are not independent, but related (e.g., the same quantity
18+
in two different units).
1519
"""
20+
1621
import matplotlib.pyplot as plt
1722
import numpy as np
1823

0 commit comments

Comments
 (0)