Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
1850254d
Commit
1850254d
authored
Nov 23, 2020
by
Philipp Arras
Browse files
Fix matplotlib deprecation warning
parent
0b1654ec
Pipeline
#87603
passed with stages
in 12 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/plot.py
View file @
1850254d
...
...
@@ -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. '
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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