Changed the output settings for matplotlib so that displays aren't needed.