Commit 3f31d6b3 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'mpl_deprecation_backport' into 'NIFTy_6'

Fix matplotlib deprecation warning

See merge request !580
parents 0b1654ec 1850254d
Pipeline #103362 passed with stages
in 25 minutes and 32 seconds
...@@ -573,9 +573,9 @@ class Plot(object): ...@@ -573,9 +573,9 @@ class Plot(object):
if nx == ny == 0: if nx == ny == 0:
nx = ny = int(np.ceil(np.sqrt(nplot))) nx = ny = int(np.ceil(np.sqrt(nplot)))
elif nx == 0: elif nx == 0:
nx = np.ceil(nplot/ny) nx = int(np.ceil(nplot/ny))
elif ny == 0: elif ny == 0:
ny = np.ceil(nplot/nx) ny = int(np.ceil(nplot/nx))
if nx*ny < nplot: if nx*ny < nplot:
raise ValueError( raise ValueError(
'Figure dimensions not sufficient for number of plots. ' 'Figure dimensions not sufficient for number of plots. '
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment