Which command do I need to use? To my knowledge, the g_angle and g_energy commands can only plots the torsional energy as a function of simulation time.
If you have both the angle and the energy in separate files, it's a simple matter of using grep and/or awk to parse the files and produce an energy vs. angle plot.