Skip to content

Commit

Permalink
fix error where some ticks that should be been made invisible remaine…
Browse files Browse the repository at this point in the history
…d on the y axis
  • Loading branch information
bendichter committed Sep 17, 2024
1 parent 284087a commit 09b441c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions brokenaxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,18 +235,12 @@ def set_spines(self):
subplotspec = ax.get_subplotspec()
if not subplotspec.is_last_row():
ax.spines["bottom"].set_visible(False)
plt.setp(ax.xaxis.get_minorticklabels(), visible=False)
plt.setp(ax.xaxis.get_minorticklines(), visible=False)
plt.setp(ax.xaxis.get_majorticklabels(), visible=False)
plt.setp(ax.xaxis.get_majorticklines(), visible=False)
[child.set_visible(False) for child in ax.xaxis.get_children()]
if self.despine or not subplotspec.is_first_row():
ax.spines["top"].set_visible(False)
if not subplotspec.is_first_col():
ax.spines["left"].set_visible(False)
plt.setp(ax.yaxis.get_minorticklabels(), visible=False)
plt.setp(ax.yaxis.get_minorticklines(), visible=False)
plt.setp(ax.yaxis.get_majorticklabels(), visible=False)
plt.setp(ax.yaxis.get_majorticklines(), visible=False)
[child.set_visible(False) for child in ax.yaxis.get_children()]
if self.despine or not subplotspec.is_last_col():
ax.spines["right"].set_visible(False)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name='brokenaxes',
version='0.6.1',
version='0.6.2',
description='Create broken axes',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 09b441c

Please sign in to comment.