Change to argparse module.
Move pyplot to plt and numpy to np. Add argument parsing from files. Add options for auto-layout and for parsing dates on the x axis.