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
afc89d79
Commit
afc89d79
authored
Feb 05, 2018
by
Philipp Arras
Browse files
Better plotting in wiener_filter_easy
parent
0b43bfeb
Pipeline
#24384
passed with stage
in 6 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/wiener_filter_easy.py
View file @
afc89d79
...
...
@@ -62,9 +62,12 @@ if __name__ == "__main__":
D
=
ift
.
InversionEnabler
(
D
,
inverter
)
m
=
D
(
j
)
# Plotting
d_field
=
ift
.
Field
(
s_space
,
val
=
d
.
val
)
zmax
=
max
(
ht
(
sh
).
max
(),
d_field
.
max
(),
ht
(
m
).
max
())
zmin
=
min
(
ht
(
sh
).
min
(),
d_field
.
min
(),
ht
(
m
).
min
())
plotdict
=
{
"xlabel"
:
"Pixel index"
,
"ylabel"
:
"Pixel index"
,
"colormap"
:
"Planck-like"
}
"colormap"
:
"Planck-like"
,
"zmax"
:
zmax
,
"zmin"
:
zmin
}
ift
.
plot
(
ht
(
sh
),
name
=
"mock_signal.png"
,
**
plotdict
)
ift
.
plot
(
ift
.
Field
(
s_space
,
val
=
d
.
val
),
name
=
"data.png"
,
**
plotdict
)
ift
.
plot
(
ht
(
m
),
name
=
"map.png"
,
**
plotdict
)
ift
.
plot
(
d_field
,
name
=
"data.png"
,
**
plotdict
)
ift
.
plot
(
ht
(
m
),
name
=
"reconstruction.png"
,
**
plotdict
)
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