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
7e98b864
Commit
7e98b864
authored
Jul 10, 2018
by
Philipp Arras
Browse files
Plotting
parent
272f29a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
demos/getting_started_1.py
View file @
7e98b864
...
...
@@ -77,4 +77,14 @@ if __name__ == '__main__':
m
=
D
(
j
)
# PLOTTING
# Truth, data, reconstruction, residuals
rg
=
isinstance
(
position_space
,
ift
.
RGSpace
)
if
rg
and
len
(
position_space
.
shape
)
==
1
:
ift
.
plot
([
HT
(
MOCK_SIGNAL
),
GR
.
adjoint
(
data
),
HT
(
m
)],
label
=
[
'Mock signal'
,
'Data'
,
'Reconstruction'
],
alpha
=
[
1
,
.
3
,
1
],
name
=
'getting_started_1.png'
)
else
:
ift
.
plot
(
HT
(
MOCK_SIGNAL
),
title
=
'Mock Signal'
,
name
=
'mock_signal.png'
)
ift
.
plot
((
GR
*
Mask
).
adjoint
(
data
),
title
=
'Data'
,
name
=
'data.png'
)
ift
.
plot
(
HT
(
m
),
title
=
'Reconstruction'
,
name
=
'reconstruction.png'
)
ift
.
plot
(
HT
(
m
-
MOCK_SIGNAL
),
name
=
'residuals.png'
)
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