Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
ift
NIFTy
Commits
3ba3b27b
Commit
3ba3b27b
authored
Jul 24, 2018
by
Philipp Arras
Browse files
More verbose error message for plotting
parent
99f264ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/plotting/plot.py
View file @
3ba3b27b
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment