Commit 74da7292 authored by Lukas Platz's avatar Lukas Platz

improving plots

results.png: make KL.position and MOCK_POSITION power spectra lines
thicker so they are clearly identifiable.

loop.png: do not overwrite the intermediary loop plot, save one
for each iteration
parent 4a67895d
......@@ -95,7 +95,7 @@ if __name__ == '__main__':
plot = ift.Plot()
plot.add(signal(KL.position), title="reconstruction")
plot.add([A.force(KL.position), A.force(MOCK_POSITION)], title="power")
plot.output(ny=1, ysize=6, xsize=16, name="loop.png")
plot.output(ny=1, ysize=6, xsize=16, name="loop-{:02}.png".format(i))
KL = ift.KL_Energy(position, H, N_samples)
plot = ift.Plot()
......@@ -107,6 +107,7 @@ if __name__ == '__main__':
powers = [A.force(s + KL.position) for s in KL.samples]
plot.add(
[A.force(KL.position), A.force(MOCK_POSITION)] + powers,
title="Sampled Posterior Power Spectrum")
powers + [A.force(KL.position), A.force(MOCK_POSITION)],
title="Sampled Posterior Power Spectrum",
linewidth=[1.]*len(powers) + [3., 3.])
plot.output(ny=1, nx=3, xsize=24, ysize=6, name="results.png")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment