Skip to content

Commit e3013a7

Browse files
committed
+1 to _get_layout
1 parent a6f439b commit e3013a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/plotting/_matplotlib/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def _get_layout(
130130
try:
131131
return layouts[nplots]
132132
except KeyError:
133-
k = floor(log2(nplots))
133+
k = floor(log2(nplots)) + 1
134134

135135
if (k - 1) * k >= nplots:
136136
return k, (k - 1)

0 commit comments

Comments
 (0)