Skip to content

Commit 8c71f60

Browse files
authored
Update _tools.py
1 parent 7c6efe2 commit 8c71f60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/plotting/_tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ def _handle_shared_axes(axarr, nplots, naxes, nrows, ncols, sharex, sharey):
311311
# only the last row of subplots should get x labels -> all
312312
# other off layout handles the case that the subplot is
313313
# the last in the column, because below is no subplot/gap.
314-
if not layout[ax.rowNum + 1, ax.colNum] or getattr(ax, '_pandas_colorbar_axes', False):
314+
if not layout[ax.rowNum + 1, ax.colNum] or \
315+
getattr(ax, '_pandas_colorbar_axes', False):
315316
continue
316317
if sharex or len(ax.get_shared_x_axes()
317318
.get_siblings(ax)) > 1:

0 commit comments

Comments
 (0)