diff --git a/demos/bernoulli_demo.py b/demos/bernoulli_demo.py index 8335e9af59b1f0a0f6afc051f205b5cf52a44b0f..a679c188cfa7544b0fb05391597fc421c0b87fee 100644 --- a/demos/bernoulli_demo.py +++ b/demos/bernoulli_demo.py @@ -91,4 +91,5 @@ if __name__ == '__main__': ift.plot(reconstruction, title='reconstruction') ift.plot(GR.adjoint_times(data), title='data') ift.plot(sky.at(mock_position).value, title='truth') - ift.plot_finish(nx=3, xsize=16, ysize=5, title="results", name="bernoulli.png") + ift.plot_finish(nx=3, xsize=16, ysize=5, title="results", + name="bernoulli.png") diff --git a/demos/getting_started_3.py b/demos/getting_started_3.py index 47776c1c4c5b25cf9a1c77afe6dee71e0cd8ba8c..295090fbc7218007b678130fe8f76fdfe41aab8b 100644 --- a/demos/getting_started_3.py +++ b/demos/getting_started_3.py @@ -115,4 +115,5 @@ if __name__ == '__main__': powers = [A.at(s+position).value for s in samples] ift.plot([A.at(position).value, A.at(MOCK_POSITION).value]+powers, title="power") - ift.plot_finish(nx=3, xsize=16, ysize=5, title="results", name="results.png") + ift.plot_finish(nx=3, xsize=16, ysize=5, title="results", + name="results.png") diff --git a/demos/plot_test.py b/demos/plot_test.py index 3839e3e5c02144cc0d3d7e1187e5e9db0823cc7d..69ad94213480022cdab1e586a3ad1dbcb335f4d8 100644 --- a/demos/plot_test.py +++ b/demos/plot_test.py @@ -18,7 +18,7 @@ def plot_test(): field_gl = ift.Field.from_global_data(gl_space, np.random.randn(32640)) field_ps = ift.power_analyze(fft.times(field_rg2)) - ## Start various plotting tests + # Start various plotting tests ift.plot(field_rg1_1, title='Single plot') ift.plot_finish() @@ -36,5 +36,6 @@ def plot_test(): ift.plot(field_rg2, title='2d rg') ift.plot_finish(nx=2, ny=3, title='Five plots') + if __name__ == '__main__': plot_test()