Placed plt.show() at very end of program. Fixed LaTeX typo.
Generalised parsing of arguments so this script doesn't have to be changed when plot.py is changed.