Draw the energy plot