There is a maintenance of MPCDF Gitlab on Thursday, April 22st 2020, 9:00 am CEST - Expect some service interruptions during this time

Commit 3ba3b27b authored by Philipp Arras's avatar Philipp Arras

More verbose error message for plotting

parent 99f264ae
......@@ -359,7 +359,7 @@ def plot_finish(**kwargs):
ny = kwargs.pop("ny", int(np.ceil(np.sqrt(nplot))))
if nx*ny < nplot:
raise ValueError(
'Figure dimensions not sufficient for number of plots')
'Figure dimensions not sufficient for number of plots. Available plot slots: {}, number of plots: {}'.format(nx*ny, nplot))
xsize = kwargs.pop("xsize", 6)
ysize = kwargs.pop("ysize", 6)
fig.set_size_inches(xsize, ysize)
......
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