8000 DOC: improve spines crosslinking by jklymak · Pull Request #23316 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

DOC: improve spines crosslinking #23316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions examples/spines/spines.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
- normal Axes, with spines on all four sides;
- an Axes with spines only on the left and bottom;
- an Axes using custom bounds to limit the extent of the spine.

Each `.axes.Axes` has a list of `.Spine` objects, accessible
via the container ``ax.spines``.
"""
import numpy as np
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -44,3 +47,12 @@
ax2.xaxis.set_ticks_position('bottom')

plt.show()

# .. admonition:: References
#
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# - `matplotlib.Spines.set_visible`
# - `matplotlib.Spines.set_bounds`
# - `matplotlib.axis.set_ticks_position`
1 change: 1 addition & 0 deletions lib/matplotlib/spines.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Spine(mpatches.Patch):
`~.Spine.set_patch_line`, `~.Spine.set_patch_circle`, or
`~.Spine.set_patch_arc` has been called. Line-like is the default.

For examples see :ref:`spines_examples`.
"""
def __str__(self):
return "Spine"
Expand Down
0