From 254f5d15e63ae1db07ab78ac5b6f2c52d62ede7b Mon Sep 17 00:00:00 2001
From: Joana Fraxanet Morales <joana.fraxanet@gmail.com>
Date: Tue, 22 Jan 2019 10:13:36 +0000
Subject: [PATCH] fix plot

---
 src/2_debye_model.md | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/src/2_debye_model.md b/src/2_debye_model.md
index 305675db..49c6b46c 100644
--- a/src/2_debye_model.md
+++ b/src/2_debye_model.md
@@ -134,20 +134,13 @@ T_D = fit[0][0]
 fig, ax = pyplot.subplots()
 ax.scatter(T, c)
 ax.set_title('Heat capacity of silver compared to the Debye and Einstein models')
-ax.plot(temp, c_einstein(temp, T_E), label='Einstein model')
-ax.plot(temp, c_debye(temp, T_D), label='Debye model')
-ax.set_ylim(bottom=0, top=3.4)
+ax.plot(temp, c_debye(temp, T_D), label=f'Debye model, $T_e={T_E:.5}$')
+ax.plot(temp, c_einstein(temp, T_E), label=f'Einstein model, $T_e={T_E:.5}$')
+ax.set_ylim(bottom=0, top=3)
 ax.set_xlim(0, 215)
 ax.set_xlabel('$T(K)$')
 ax.set_ylabel(r'$C/k_B$')
-ax.set_xticks([T_E, T_D])
-ax.set_xticklabels(['$T_E$','$T_D$'])
-ax.set_yticks([3])
-ax.set_yticklabels(['$3$'])
-ax.legend(loc='upper left')
-pyplot.hlines([3], 0, 215, linestyles='dashed')
-pyplot.vlines([T_E,T_D], 0, 3.4, linestyles='dashed')
-#draw_classic_axes(ax, xlabeloffset=0.3)
+ax.legend(loc='lower right');
 ```
 
 ## Exercises
-- 
GitLab