QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: sweta on January 31, 2013, 13:24

Title: transmission spectra querry
Post by: sweta on January 31, 2013, 13:24
Hi..
How to change color of the plots when we merge 2 or more transmission spectra in same script. For ex: if we want red color for 1st .nc file what i should include in the script. The script used is as follows:
t = nlread('analysis.nc', TransmissionSpectrum)[0]
t = nlread('analysis1.nc', TransmissionSpectrum)[0]
import pylab as P  
P.plot(t.evaluate(),t.energies() )
P.plot(t.evaluate(),t.energies() )
P.xlabel("Transmission T(E)")  
P.ylabel("Energy / eV")  
P.savefig('transmission2.png', dpi=120)
Title: Re: transmission spectra querry
Post by: Anders Blom on January 31, 2013, 14:03
Code: python
t = nlread('analysis.nc', TransmissionSpectrum)[0]
t1 = nlread('analysis1.nc', TransmissionSpectrum)[0]
import pylab as P 
P.plot(t.evaluate(),t.energies(), 'r-' )
P.plot(t1.evaluate(),t1.energies(), 'b-' )
P.xlabel("Transmission T(E)") 
P.ylabel("Energy / eV") 
P.savefig('transmission2.png', dpi=120)