plotcsv_energy.py: use Agg backend if DISPLAY isn't useful