Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0d39a4f

Browse filesBrowse files
authored
Merge pull request #23316 from jklymak/doc-improve-spines-crosslink
DOC: improve spines crosslinking
2 parents 3522217 + daa24b0 commit 0d39a4f
Copy full SHA for 0d39a4f

File tree

Expand file treeCollapse file tree

2 files changed

+13
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+13
-0
lines changed

‎examples/spines/spines.py

Copy file name to clipboardExpand all lines: examples/spines/spines.py
+12Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/spines.py
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.