From eac550aff8703636ca69fc98b7b5e8d02c4ae8f5 Mon Sep 17 00:00:00 2001 From: Anton Akhmerov <anton.akhmerov@gmail.com> Date: Fri, 5 Mar 2021 09:08:30 +0000 Subject: [PATCH] only plot DOS at positive frequencies --- src/7_tight_binding_model_solutions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/7_tight_binding_model_solutions.md b/src/7_tight_binding_model_solutions.md index 17e636b8..ee2b5622 100644 --- a/src/7_tight_binding_model_solutions.md +++ b/src/7_tight_binding_model_solutions.md @@ -81,11 +81,11 @@ pyplot.yticks([-np.sqrt(2), 0, np.sqrt(2)], [r'$-2\sqrt{\frac{\kappa}{m}}$', 0, pyplot.tight_layout(); pyplot.subplot(1,2,2) -w = np.linspace(-0.95, 0.95, 300); +w = np.linspace(0, 0.95, 300); g = 1/np.sqrt(1-w**2); pyplot.plot(w, g, 'b'); pyplot.xlabel(r'$\omega$'); pyplot.ylabel('$g(w)$'); -pyplot.xticks([-1, 0, 1], [r'$-2\sqrt{\frac{k}{m}}$', 0, r'$2\sqrt{\frac{k}{m}}$']); +pyplot.xticks([0, 1], [0, r'$2\sqrt{\frac{k}{m}}$']); pyplot.yticks([0.5, 1], [0, r'$\frac{L}{2\pi a}\sqrt{\frac{\kappa}{m}}$']); pyplot.tight_layout(); ``` -- GitLab