Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit daa24b0

Browse files
committed
DOC: improve spines crosslinking [skip-actions] [skip-azure] [skip-appveyor]
1 parent 3522217 commit daa24b0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

examples/spines/spines.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
- normal Axes, with spines on all four sides;
99
- an Axes with spines only on the left and bottom;
1010
- an Axes using custom bounds to limit the extent of the spine.
11+
12+
Each `.axes.Axes` has a list of `.Spine` objects, accessible
13+
via the container ``ax.spines``.
1114
"""
1215
import numpy as np
1316
import matplotlib.pyplot as plt
@@ -44,3 +47,12 @@
4447
ax2.xaxis.set_ticks_position('bottom')
4548

4649
plt.show()
50+
51+
# .. admonition:: References
52+
#
53+
# The use of the following functions, methods, classes and modules is shown
54+
# in this example:
55+
#
56+
# - `matplotlib.Spines.set_visible`
57+
# - `matplotlib.Spines.set_bounds`
58+
# - `matplotlib.axis.set_ticks_position`

lib/matplotlib/spines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class Spine(mpatches.Patch):
2727
`~.Spine.set_patch_line`, `~.Spine.set_patch_circle`, or
2828
`~.Spine.set_patch_arc` has been called. Line-like is the default.
2929
30+
For examples see :ref:`spines_examples`.
3031
"""
3132
def __str__(self):
3233
return "Spine"

0 commit comments

Comments
 (0)