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
cb1615a3
Commit
cb1615a3
authored
May 28, 2020
by
Philipp Arras
Browse files
Better plotting
parent
f61cd73d
Pipeline
#75693
passed with stages
in 13 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/getting_started_3.py
View file @
cb1615a3
...
...
@@ -137,8 +137,9 @@ if __name__ == '__main__':
# Plot current reconstruction
plot
=
ift
.
Plot
()
plot
.
add
(
signal
(
KL
.
position
),
title
=
"reconstruction"
)
plot
.
add
([
A
.
force
(
mock_position
),
A
.
force
(
KL
.
position
)],
title
=
"power"
)
plot
.
add
(
signal
(
KL
.
position
),
title
=
"Latent mean"
)
plot
.
add
([
A
.
force
(
KL
.
position
+
ss
)
for
ss
in
KL
.
samples
],
title
=
"Samples power spectrum"
)
plot
.
output
(
ny
=
1
,
ysize
=
6
,
xsize
=
16
,
name
=
filename
.
format
(
"loop_{:02d}"
.
format
(
i
)))
...
...
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