forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request matplotlib#26454 from timhoffm/label_outer_check_r…
…ectilinear Rename an internal parameter of _label_outer_x/yaxis()
- Loading branch information
Showing
6 changed files
with
98 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Remove inner ticks in ``label_outer()`` | ||
--------------------------------------- | ||
Up to now, ``label_outer()`` has only removed the ticklabels. The ticks lines | ||
were left visible. This is now configurable through a new parameter | ||
``label_outer(remove_inner_ticks=True)``. | ||
|
||
|
||
.. plot:: | ||
:include-source: true | ||
|
||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
|
||
x = np.linspace(0, 2 * np.pi, 100) | ||
|
||
fig, axs = plt.subplots(2, 2, sharex=True, sharey=True, | ||
gridspec_kw=dict(hspace=0, wspace=0)) | ||
|
||
axs[0, 0].plot(x, np.sin(x)) | ||
axs[0, 1].plot(x, np.cos(x)) | ||
axs[1, 0].plot(x, -np.cos(x)) | ||
axs[1, 1].plot(x, -np.sin(x)) | ||
|
||
for ax in axs.flat: | ||
ax.grid(color='0.9') | ||
ax.label_outer(remove_inner_ticks=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters