File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ def _apply_axis_sharing(self):
318
318
# bottommost or to the *right* of the leftmost panel. But the sharing level
319
319
# used for the leftmost and bottommost is the *figure* sharing level.
320
320
axis = self .xaxis
321
- if self ._sharex is not None :
321
+ if self ._sharex is not None and axis . get_visible () :
322
322
level = 3 if self ._panel_sharex_group else self .figure ._sharex
323
323
if level > 0 :
324
324
text ._transfer_text (axis .label , self ._sharex .xaxis .label )
@@ -329,7 +329,7 @@ def _apply_axis_sharing(self):
329
329
axis .set_tick_params (which = 'both' , labelbottom = False , labeltop = False )
330
330
# Y axis
331
331
axis = self .yaxis
332
- if self ._sharey is not None :
332
+ if self ._sharey is not None and axis . get_visible () :
333
333
level = 3 if self ._panel_sharey_group else self .figure ._sharey
334
334
if level > 0 :
335
335
text ._transfer_text (axis .label , self ._sharey .yaxis .label )
You can’t perform that action at this time.
0 commit comments