Skip to content

Commit 42f2a52

Browse files
authored
DOC: Move multiple yaxis example from Spines to Subplots, axes and figures (matplotlib#31765)
The primary aspect here is the multiple Axis feature. Therefore it should live next to the other `twinx()` examples. The spine aspect is only a technical detail need to move the third y-axis. A user would not look for this in the Spines section.
1 parent 73ac639 commit 42f2a52

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

galleries/examples/axisartist/demo_parasite_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
`mpl_toolkits.axes_grid1.parasite_axes.ParasiteAxes`.
1111
1212
The standard and recommended approach is to use instead standard Matplotlib
13-
axes, as shown in the :doc:`/gallery/spines/multiple_yaxis_with_spines`
14-
example.
13+
axes, as shown in the
14+
:doc:`/gallery/subplots_axes_and_figures/multiple_yaxis_with_spines` example.
1515
1616
An alternative approach using `mpl_toolkits.axes_grid1` and
1717
`mpl_toolkits.axisartist` is shown in the

galleries/examples/axisartist/demo_parasite_axes2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
`mpl_toolkits.axisartist.axislines.Axes`.
1616
1717
The standard and recommended approach is to use instead standard Matplotlib
18-
axes, as shown in the :doc:`/gallery/spines/multiple_yaxis_with_spines`
19-
example.
18+
axes, as shown in the
19+
:doc:`/gallery/subplots_axes_and_figures/multiple_yaxis_with_spines` example.
2020
2121
An alternative approach using `mpl_toolkits.axes_grid1.parasite_axes.HostAxes`
2222
and `mpl_toolkits.axes_grid1.parasite_axes.ParasiteAxes` is shown in the

galleries/examples/spines/multiple_yaxis_with_spines.py renamed to galleries/examples/subplots_axes_and_figures/multiple_yaxis_with_spines.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
`~matplotlib.spines.Spine`\s. Alternative approaches using non-standard Axes
1212
are shown in the :doc:`/gallery/axisartist/demo_parasite_axes` and
1313
:doc:`/gallery/axisartist/demo_parasite_axes2` examples.
14+
15+
.. redirect-from:: /gallery/spines/multiple_yaxis_with_spines
1416
"""
1517

1618
import matplotlib.pyplot as plt
@@ -44,3 +46,6 @@
4446
ax.legend(handles=[p1, p2, p3])
4547

4648
plt.show()
49+
50+
# %%
51+
# .. tags:: component: spines

0 commit comments

Comments
 (0)