Plot by default if there is a display, and fix import.