allow plotting to work without DISPLAY if saving to file