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

Update 1_einstein_model.md - small changes in plot

parent bf24e5d8
No related branches found
No related tags found
No related merge requests found
Pipeline #27893 passed
......@@ -239,10 +239,10 @@ The left plot below shows the Bose-Einstein distribution vs energy. We see that
```python
xline = [1, 1];
yline = [0, 2];
yline = [0, 1];
fig, (ax, ax2) = pyplot.subplots(ncols=2, figsize=(10, 5))
omega = np.linspace(0.1, 2)
ax.plot(omega, 1/(np.exp(omega) - 1), '-', xline, yline, 'k--')
ax.plot(omega, 1/(np.exp(omega) - 1), '-', xline, yline, 'r--')
ax.set_ylim(0, top=3)
ax.set_xlim(left=0)
ax.set_xlabel('$\hbar \omega$')
......@@ -251,7 +251,8 @@ ax.set_xticklabels(['$0$', '$k_B T$'])
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)
ax.text(1, 1, r'$\hbar \omega = kT$', ha='left', color='r');
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.
Finish editing this message first!
Please register or to comment