Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 596fefc9 authored by snuverink_j's avatar snuverink_j
Browse files

small refactoring

parent bcf88e31
No related branches found
No related tags found
No related merge requests found
# kernel e.g. datascience_py37
import numpy as np
import matplotlib.pyplot as plt
......@@ -56,8 +56,11 @@ for angle in np.arange(0,360,1):
z1 += makeGaussian2(x0, y0, angle, static_std, static_std, framesize, framesize)
plt.plot(np.arange(-framesize+0.5,framesize+0.5,1),norm(z[framesize,:]), color='green', linestyle='--', linewidth=3, label='Rotating beam', marker="x", markerfacecolor='red')
plt.plot(np.arange(-framesize+0.5,framesize+0.5,1),norm(z1[framesize,:]), color='red', linestyle='--', linewidth=3, label='Static beam', marker="x", markerfacecolor='black')
bins = np.arange(-framesize+0.5,framesize+0.5,1)
values_rot = norm(z[framesize,:])
values_stat = norm(z1[framesize,:])
plt.plot(bins, values_rot, color='green', linestyle='--', linewidth=3, label='Rotating beam', marker="x", markerfacecolor='red')
plt.plot(bins, values_stat, color='red', linestyle='--', linewidth=3, label='Static beam', marker="x", markerfacecolor='black')
plt.ylim(bottom=0)
plt.legend()
plt.xlabel('${radius\ [mm]}$',size=11)
......
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