<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Introduction
This notebook shows how to plot an XRD plot for the two polymorphs of CsCl ($Pm\overline{3}m$ and $Fm\overline{3}m$). You can also use matgenie.py's diffraction command to plot an XRD pattern from a structure file.
Step1:  $\alpha$-CsCl ($Pm\overline{3}m$)
Let's start with the typical $\alpha$ form of CsCl.
Step2:  Compare it with the experimental XRD pattern below.
Step3:  $\beta$-CsCl ($Fm\overline{3}m$)
Let's now look at the $\beta$ (high-temperature) form of CsCl.
Step4:  Compare it with the experimental XRD pattern below.
<ASSISTANT_TASK:>
Python Code:
# Set up some imports that we will need
from pymatgen import Lattice, Structure
from pymatgen.analysis.diffraction.xrd import XRDCalculator
from IPython.display import Image, display
%matplotlib inline
Explanation: Introduction
This notebook shows how to plot an XRD plot for the two polymorphs of CsCl ($Pm\overline{3}m$ and $Fm\overline{3}m$). You can also use matgenie.py's diffraction command to plot an XRD pattern from a structure file.
End of explanation
# Create CsCl structure
a = 4.209 #Angstrom
latt = Lattice.cubic(a)
structure = Structure(latt, ["Cs", "Cl"], [[0, 0, 0], [0.5, 0.5, 0.5]])
c = XRDCalculator()
c.show_xrd_plot(structure)
Explanation: $\alpha$-CsCl ($Pm\overline{3}m$)
Let's start with the typical $\alpha$ form of CsCl.
End of explanation
display(Image(filename=('./PDF - alpha CsCl.png')))
Explanation: Compare it with the experimental XRD pattern below.
End of explanation
# Create CsCl structure
a = 6.923 #Angstrom
latt = Lattice.cubic(a)
structure = Structure(latt, ["Cs", "Cs", "Cs", "Cs", "Cl", "Cl", "Cl", "Cl"], 
                      [[0, 0, 0], [0.5, 0.5, 0], [0, 0.5, 0.5], [0.5, 0, 0.5], 
                       [0.5, 0.5, 0.5], [0, 0, 0.5], [0, 0.5, 0], [0.5, 0, 0]])
c.show_xrd_plot(structure)
Explanation: $\beta$-CsCl ($Fm\overline{3}m$)
Let's now look at the $\beta$ (high-temperature) form of CsCl.
End of explanation
display(Image(filename=('./PDF - beta CsCl.png')))
Explanation: Compare it with the experimental XRD pattern below.
End of explanation
<END_TASK>