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