We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4334a71 commit 6cf65c8Copy full SHA for 6cf65c8
1 file changed
pyro/util/plot_tools.py
@@ -55,8 +55,8 @@ def setup_axes(myg, num):
55
56
else:
57
# 2-d grid of plots
58
- ny = int(math.sqrt(num))
59
- nx = num//ny
+ ny = math.ceil(math.sqrt(num))
+ nx = math.ceil(num/ny)
60
61
axes = ImageGrid(f, 111,
62
nrows_ncols=(nx, ny),
0 commit comments