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

Merge branch 'mpl_deprecation_backport' into 'NIFTy_6'

Fix matplotlib deprecation warning

See merge request !580
parents 0b1654ec 1850254d
Pipeline #94211 passed with stages
in 25 minutes and 35 seconds
......@@ -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. '
......
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