Skip to content
Snippets Groups Projects
Commit 793d3770 authored by T. van der Sar's avatar T. van der Sar
Browse files

Update 1_einstein_model.md - small changes to plot

parent 4e8672a7
No related branches found
No related tags found
No related merge requests found
Pipeline #27886 passed
......@@ -242,7 +242,7 @@ xline = [1, 1];
yline = [0, 2];
fig, (ax, ax2) = pyplot.subplots(ncols=2, figsize=(10, 5))
omega = np.linspace(0.1, 2)
ax.plot(omega, 1/(np.exp(omega) - 1), 'b', xline, yline, 'k')
ax.plot(omega, 1/(np.exp(omega) - 1), '-', xline, yline, 'k--')
ax.set_ylim(0, top=3)
ax.set_xlim(left=0)
ax.set_xlabel('$\hbar \omega$')
......@@ -252,7 +252,6 @@ ax.set_ylabel('$n$')
ax.set_yticks([1, 2])
ax.set_yticklabels(['$1$', '$2$'])
ax.text(1, 0.5, r'$\hbar \omega = kT$', ha='left', color='r');
draw_classic_axes(ax, xlabeloffset=.2)
temps = np.linspace(0.01, 2)
ax2.plot(temps, 1/2 + 1/(np.exp(1/temps)-1))
ax2.set_ylim(bottom=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment