Set up matplotlib to be useable without an X server