We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4c5d78 commit 1408738Copy full SHA for 1408738
pandas/plotting/_matplotlib/tools.py
@@ -417,8 +417,12 @@ def handle_shared_axes(
417
except IndexError:
418
# if gridspec is used, ax.rowNum and ax.colNum may different
419
# from layout shape. in this case, use last_row logic
420
+ if compat.mpl_ge_3_4_0():
421
+ is_last_row = lambda x: x.get_subplotspec().is_last_row()
422
+ else:
423
+ is_last_row = lambda x: x.is_last_row()
424
for ax in axarr:
- if ax.is_last_row():
425
+ if is_last_row(ax):
426
continue
427
if sharex or _has_externally_shared_axis(ax, "x"):
428
_remove_labels_from_axis(ax.xaxis)
0 commit comments