Commit 1850254d authored by Philipp Arras's avatar Philipp Arras

Fix matplotlib deprecation warning

parent 0b1654ec
Pipeline #87603 passed with stages
in 12 minutes and 17 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