diff --git a/nifty6/plot.py b/nifty6/plot.py index afa8878282beaf21a0fdbc27f519630419bdd811..226e48d95a50d137c1efd364268667b921e40ef1 100644 --- a/nifty6/plot.py +++ b/nifty6/plot.py @@ -573,9 +573,9 @@ class Plot(object): if nx == ny == 0: nx = ny = int(np.ceil(np.sqrt(nplot))) elif nx == 0: - nx = np.ceil(nplot/ny) + nx = int(np.ceil(nplot/ny)) elif ny == 0: - ny = np.ceil(nplot/nx) + ny = int(np.ceil(nplot/nx)) if nx*ny < nplot: raise ValueError( 'Figure dimensions not sufficient for number of plots. '