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
99c9887d
Commit
99c9887d
authored
May 03, 2019
by
Philipp Arras
Browse files
Fix aspect setting in 2D plots
parent
0360e6ca
Pipeline
#47703
passed with stages
in 7 minutes and 53 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
nifty5/plot.py
View file @
99c9887d
...
...
@@ -349,11 +349,10 @@ def _plot2D(f, ax, **kwargs):
rgb
=
_rgb_data
(
f
.
to_global_data
())
have_rgb
=
True
label
=
kwargs
.
pop
(
"label"
,
None
)
foo
=
kwargs
.
pop
(
"norm"
,
None
)
norm
=
{}
if
foo
is
None
else
{
'norm'
:
foo
}
aspect
=
kwargs
.
pop
(
"aspect"
,
None
)
foo
=
kwargs
.
pop
(
"aspect"
,
None
)
aspect
=
{}
if
foo
is
None
else
{
'aspect'
:
foo
}
ax
.
set_title
(
kwargs
.
pop
(
"title"
,
""
))
...
...
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