Skip to content

Commit

Permalink
+1 to _get_layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Feb 3, 2025
1 parent a6f439b commit e3013a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/plotting/_matplotlib/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _get_layout(
try:
return layouts[nplots]
except KeyError:
k = floor(log2(nplots))
k = floor(log2(nplots)) + 1

if (k - 1) * k >= nplots:
return k, (k - 1)
Expand Down

0 comments on commit e3013a7

Please sign in to comment.