Skip to content
Snippets Groups Projects
Commit 0bf7eef0 authored by Celine Durniak's avatar Celine Durniak
Browse files

Python examples: modification of labels for intensity plot.

parent 4cb9e911
No related branches found
No related tags found
No related merge requests found
Showing
with 80 additions and 60 deletions
...@@ -62,9 +62,10 @@ def run_simulation(): ...@@ -62,9 +62,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max]) extent=[phi_min, phi_max, alpha_min, alpha_max])
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', size=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -55,9 +55,10 @@ def run_simulation(): ...@@ -55,9 +55,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', size=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -58,9 +58,10 @@ def run_simulation(): ...@@ -58,9 +58,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', size=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -69,9 +69,10 @@ def run_simulation(): ...@@ -69,9 +69,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', size=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -59,9 +59,10 @@ def run_simulation(): ...@@ -59,9 +59,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -83,9 +83,10 @@ def run_simulation(): ...@@ -83,9 +83,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', size=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -62,9 +62,10 @@ def run_simulation(): ...@@ -62,9 +62,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -70,9 +70,10 @@ def run_simulation(): ...@@ -70,9 +70,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -65,9 +65,10 @@ def run_simulation(): ...@@ -65,9 +65,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -67,9 +67,10 @@ def run_simulation(): ...@@ -67,9 +67,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -69,9 +69,10 @@ def run_simulation(): ...@@ -69,9 +69,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -66,9 +66,10 @@ def run_simulation(): ...@@ -66,9 +66,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -64,9 +64,10 @@ def run_simulation(): ...@@ -64,9 +64,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -65,9 +65,10 @@ def run_simulation(): ...@@ -65,9 +65,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -67,9 +67,10 @@ def run_simulation(): ...@@ -67,9 +67,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -61,9 +61,10 @@ def run_simulation(): ...@@ -61,9 +61,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -65,9 +65,10 @@ def run_simulation(): ...@@ -65,9 +65,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -64,9 +64,10 @@ def run_simulation(): ...@@ -64,9 +64,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -66,9 +66,10 @@ def run_simulation(): ...@@ -66,9 +66,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
...@@ -61,9 +61,10 @@ def run_simulation(): ...@@ -61,9 +61,10 @@ def run_simulation():
# showing the result # showing the result
im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(), im = pylab.imshow(numpy.rot90(result, 1), norm=matplotlib.colors.LogNorm(),
extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto') extent=[phi_min, phi_max, alpha_min, alpha_max], aspect='auto')
pylab.colorbar(im) cb = pylab.colorbar(im)
pylab.xlabel(r'$\phi_f$', fontsize=16) cb.set_label(r'Intensity (arb. u.)', fontsize=16)
pylab.ylabel(r'$\alpha_f$', fontsize=16) pylab.xlabel(r'$\phi_f (^{\circ})$', fontsize=16)
pylab.ylabel(r'$\alpha_f (^{\circ})$', fontsize=16)
pylab.show() pylab.show()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment