Author Topic: transmission spectra querry  (Read 2543 times)

0 Members and 1 Guest are viewing this topic.

Offline sweta

  • Heavy QuantumATK user
  • ***
  • Posts: 84
  • Country: in
  • Reputation: 0
    • View Profile
transmission spectra querry
« 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)
« Last Edit: January 31, 2013, 13:27 by sweta »

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: transmission spectra querry
« Reply #1 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)