Skip to content

Commit 3d7a46e

Browse files
authored
Merge pull request matplotlib#20976 from dstansby/tick-spine-exs
Separate tick and spine examples
2 parents 8f62645 + 481da9b commit 3d7a46e

35 files changed

+32
-29
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ per-file-ignores =
120120
examples/style_sheets/plot_solarizedlight2.py: E501
121121
examples/subplots_axes_and_figures/demo_constrained_layout.py: E402
122122
examples/text_labels_and_annotations/custom_legends.py: E402
123-
examples/ticks_and_spines/date_concise_formatter.py: E402
123+
examples/ticks/date_concise_formatter.py: E402
124124
examples/user_interfaces/embedding_in_gtk3_panzoom_sgskip.py: E402
125125
examples/user_interfaces/embedding_in_gtk3_sgskip.py: E402
126126
examples/user_interfaces/embedding_in_gtk4_panzoom_sgskip.py: E402

doc/users/prev_whats_new/whats_new_0.99.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ that denote the data limits -- in various arbitrary locations. No
112112
longer are your axis lines constrained to be a simple rectangle around
113113
the figure -- you can turn on or off left, bottom, right and top, as
114114
well as "detach" the spine to offset it away from the data. See
115-
:doc:`/gallery/ticks_and_spines/spine_placement_demo` and
115+
:doc:`/gallery/spines/spine_placement_demo` and
116116
:class:`matplotlib.spines.Spine`.
117117

118118
.. plot::

examples/axisartist/demo_axisline_style.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
88
Note: The `mpl_toolkits.axisartist` axes classes may be confusing for new
99
users. If the only aim is to obtain arrow heads at the ends of the axes,
10-
rather check out the
11-
:doc:`/gallery/ticks_and_spines/centered_spines_with_arrows` example.
10+
rather check out the :doc:`/gallery/spines/centered_spines_with_arrows`
11+
example.
1212
"""
1313

1414
from mpl_toolkits.axisartist.axislines import AxesZero

examples/axisartist/demo_parasite_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
`mpl_toolkits.axes_grid1.parasite_axes.ParasiteAxes`.
1111
1212
An alternative approach using standard Matplotlib subplots is shown in the
13-
:doc:`/gallery/ticks_and_spines/multiple_yaxis_with_spines` example.
13+
:doc:`/gallery/spines/multiple_yaxis_with_spines` example.
1414
1515
An alternative approach using :mod:`mpl_toolkits.axes_grid1`
1616
and :mod:`mpl_toolkits.axisartist` is found in the

examples/axisartist/demo_parasite_axes2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
`~.mpl_toolkits.axes_grid1.parasite_axes.ParasiteAxes` is the
2020
:doc:`/gallery/axisartist/demo_parasite_axes` example.
2121
An alternative approach using the usual Matplotlib subplots is shown in
22-
the :doc:`/gallery/ticks_and_spines/multiple_yaxis_with_spines` example.
22+
the :doc:`/gallery/spines/multiple_yaxis_with_spines` example.
2323
"""
2424

2525
from mpl_toolkits.axes_grid1 import host_subplot

examples/axisartist/simple_axisartist1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
This example showcases the use of :mod:`.axisartist` to draw spines at custom
77
positions (here, at ``y = 0``).
88
9-
Note, however, that it is simpler to achieve this effect
10-
using standard `.Spine` methods, as demonstrated in
11-
:doc:`/gallery/ticks_and_spines/centered_spines_with_arrows`.
9+
Note, however, that it is simpler to achieve this effect using standard
10+
`.Spine` methods, as demonstrated in
11+
:doc:`/gallery/spines/centered_spines_with_arrows`.
1212
1313
.. redirect-from:: /gallery/axisartist/simple_axisline2
1414
"""

examples/spines/README.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. _spines_examples:
2+
3+
Spines
4+
======

examples/ticks_and_spines/spine_placement_demo.py renamed to examples/spines/spine_placement_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Adjusting the location and appearance of axis spines.
77
88
Note: If you want to obtain arrow heads at the ends of the axes, also check
9-
out the :doc:`/gallery/ticks_and_spines/centered_spines_with_arrows` example.
9+
out the :doc:`/gallery/spines/centered_spines_with_arrows` example.
1010
"""
1111
import numpy as np
1212
import matplotlib.pyplot as plt

0 commit comments

Comments
 (0)