From 2d1f01a54299ebe53ae142b1e4978c7e794cc6bc Mon Sep 17 00:00:00 2001
From: Sathish Kumar RK <rksathish09@gmail.com>
Date: Mon, 21 Jan 2019 23:29:40 +0000
Subject: [PATCH] make raw strings and remove old plot

---
 src/1_einstein_model.md | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/1_einstein_model.md b/src/1_einstein_model.md
index 151c1771..ae615fb5 100644
--- a/src/1_einstein_model.md
+++ b/src/1_einstein_model.md
@@ -63,8 +63,6 @@ So there is:
 
 This can be explained by considering a _quantum_ harmonic oscillator:
 
-![Wave functions and energies of a harmonic oscillator](figures/harmonic.svg)
-
 ```python
 import math
 from numpy.polynomial.hermite import Hermite
@@ -120,7 +118,7 @@ for i in range(no_states):
     
     
     # annotate plot
-    ax.text(x[len(x)-1], h0_ener(i)+1/4, '$\Psi_%2i (x)$' %(i), 
+    ax.text(x[len(x)-1], h0_ener(i)+1/4, r'$\Psi_%2i (x)$' %(i), 
              horizontalalignment='center', fontsize=14)
     
     ax.text(1/4, h0_ener(i)+1/4, '$E_%2i$' %(i), 
@@ -134,7 +132,7 @@ for i in range(no_states):
                     xytext=(x[0]+1/2, h0_ener(i)), 
                     arrowprops=dict(arrowstyle="<->"))
     elif i==1:
-        ax.text(x[0]+1/4, h0_ener(i-1)+1/3, '$\hbar\omega$', 
+        ax.text(x[0]+1/4, h0_ener(i-1)+1/3, r'$\hbar\omega$', 
                  horizontalalignment='center', fontsize=14)
         
         ax.annotate("", xy=(x[0]+1/2, h0_ener(i)), 
@@ -156,8 +154,8 @@ ax.set_yticklabels([])
 ax.set_xticklabels([])
 
 # Set x and y labels
-ax.set_xlabel('X '+'($\sqrt{\hbar/m\omega}$)', fontsize=12)
-ax.set_ylabel('E '+'($\hbar\omega$)', fontsize=12)
+ax.set_xlabel('X '+ r'($\sqrt{\hbar/m\omega}$)', fontsize=12)
+ax.set_ylabel('E '+ r'($\hbar\omega$)', fontsize=12)
 ax.yaxis.set_label_coords(0.5,1)
 ```
 
-- 
GitLab