From 28bc3bbbe97d48e0af187bc06e3f96e43fb35358 Mon Sep 17 00:00:00 2001 From: philippeller Date: Sun, 28 Jul 2024 09:56:30 +0000 Subject: [PATCH] deploy: 6ad2b2bae62c97ba9d8ee612c0b8d10293a44470 --- _modules/pisa/utils/plotter.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_modules/pisa/utils/plotter.html b/_modules/pisa/utils/plotter.html index f95fbc9cd..486b14cb5 100644 --- a/_modules/pisa/utils/plotter.html +++ b/_modules/pisa/utils/plotter.html @@ -420,8 +420,7 @@

Source code for pisa.utils.plotter

             raise TypeError('Expecting to plot a MapSet but '
                             'got %s'%type(map_set))
         if n_rows is None and n_cols is None:
-            # TODO: auto row/cols
-            n_rows = np.floor(np.sqrt(n))
+            n_rows = int(np.floor(np.sqrt(n)))
             while n % n_rows != 0:
                 n_rows -= 1
             n_cols = n // n_rows