plotcsv_energy.py: organise a bit