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

Update 7_tight_binding_model_solutions.md - plot fix 2

parent 6e4639ce
No related branches found
No related tags found
No related merge requests found
Pipeline #93589 passed
...@@ -135,7 +135,7 @@ $$ ...@@ -135,7 +135,7 @@ $$
m^* = \frac{\hbar^2}{2a^2}\frac{1}{t\cos(ka)+4t'\cos(2ka)} m^* = \frac{\hbar^2}{2a^2}\frac{1}{t\cos(ka)+4t'\cos(2ka)}
$$ $$
Plot for t=t': Plot for $t=t'$:
```python ```python
k1 = np.linspace(-pi, -pi/2-0.01, 300); k1 = np.linspace(-pi, -pi/2-0.01, 300);
...@@ -171,7 +171,7 @@ pyplot.xlabel('$k$'); pyplot.ylabel('$m_{eff}(k)$'); ...@@ -171,7 +171,7 @@ pyplot.xlabel('$k$'); pyplot.ylabel('$m_{eff}(k)$');
pyplot.xticks([-pi,0,pi],[r'$-\pi/a$',0,r'$\pi/a$']); pyplot.xticks([-pi,0,pi],[r'$-\pi/a$',0,r'$\pi/a$']);
pyplot.yticks([0],[]); pyplot.yticks([0],[]);
pyplot.tight_layout(); pyplot.tight_layout();
pyplot.ylim(-3,3)
pyplot.plot(k1, m(k1,4),'r'); pyplot.plot(k1, m(k1,4),'r');
pyplot.plot(k2, m(k2,4),'r'); pyplot.plot(k2, m(k2,4),'r');
pyplot.plot(k3, m(k3,4),'r',label='t=4t\''); pyplot.plot(k3, m(k3,4),'r',label='t=4t\'');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment