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
Open sidebar
Neel Shah
NIFTy
Commits
9974ac4e
Commit
9974ac4e
authored
Apr 07, 2020
by
Martin Reinecke
Browse files
Merge branch 'hp_LogNorm' into 'NIFTy_6'
added norm keyword argument for healpix plots See merge request
ift/nifty!442
parents
8e49ad0a
027daa0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty6/plot.py
View file @
9974ac4e
...
...
@@ -412,7 +412,7 @@ def _plot2D(f, ax, **kwargs):
if
have_rgb
:
plt
.
imshow
(
res
,
origin
=
"lower"
)
else
:
plt
.
imshow
(
res
,
vmin
=
kwargs
.
get
(
"zmin"
),
vmax
=
kwargs
.
get
(
"zmax"
),
plt
.
imshow
(
res
,
vmin
=
kwargs
.
get
(
"zmin"
),
vmax
=
kwargs
.
get
(
"zmax"
),
norm
=
norm
.
get
(
'norm'
),
cmap
=
cmap
,
origin
=
"lower"
)
plt
.
colorbar
(
orientation
=
"horizontal"
)
return
...
...
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