Skip to content

Commit

Permalink
better checks for sharey and sharex in axesgrid.py (#2347)
Browse files Browse the repository at this point in the history
* bugfix issue 2346

* fix

(cherry picked from commit d9c887e)
  • Loading branch information
aaronspring authored and mwaskom committed Nov 23, 2020
1 parent 15a07b2 commit df6d19a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seaborn/axisgrid.py
Expand Up @@ -461,13 +461,13 @@ def __init__(
if despine:
self.despine()

if sharex:
if sharex in [True, 'col']:
for ax in self._not_bottom_axes:
for label in ax.get_xticklabels():
label.set_visible(False)
ax.xaxis.offsetText.set_visible(False)

if sharey:
if sharey in [True, 'row']:
for ax in self._not_left_axes:
for label in ax.get_yticklabels():
label.set_visible(False)
Expand Down

0 comments on commit df6d19a

Please sign in to comment.