Finish method and results, and add script for including all colormaps in one figure.
This commit is contained in:
@@ -27,6 +27,7 @@ def plot():
|
||||
"latex/images/double_slit_detector.pdf",
|
||||
"latex/images/triple_slit_detector.pdf",
|
||||
]
|
||||
colors = sns.color_palette("mako", n_colors=2)
|
||||
for file, output in zip(files, outputs):
|
||||
with open(file) as f:
|
||||
lines = f.readlines();
|
||||
@@ -43,8 +44,10 @@ def plot():
|
||||
slice *= norm
|
||||
slice = np.asarray([i * i.conjugate() for i in slice])
|
||||
|
||||
ax.plot(x, slice)
|
||||
plt.savefig(output)
|
||||
ax.plot(x, slice, color=colors[0])
|
||||
ax.set_xlabel("Detector screen (y-axis)")
|
||||
ax.set_ylabel("Detection probability")
|
||||
fig.savefig(output, bbox_inches="tight")
|
||||
plt.close(fig)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user