Check args.doplot
Decrease plot width
Fixed indentation
Prune out nans before plotting