In that case use
import pylab as P
all = nlread('analysis.nc', TransmissionSpectrum)
for t in all:
P.plot(t.evaluate(),t.energies())
P.xlabel("Transmission T(E)")
P.ylabel("Energy / eV")
P.savefig('transmission3.png', dpi=120)
Note the indentation of the "plot" line.
import pylab as P
ids = ['gID002', 'gID004']
for id in ids:
t = nlread('analysis.nc', object_id=id)[0]
P.plot(t.evaluate(),t.energies())
P.xlabel("Transmission T(E)")
P.ylabel("Energy / eV")
P.savefig('transmission4.png', dpi=120)
Tip: learn Python - it will help you a lot
Easy
P.plot([0,6],[0,6], 'b-')
P.plot([0,6],[0,-6], 'b-')
where perhaps the range 0 to 6 V is a bit much, but that's easy to adjust.