# -- mode: PYTHON --
killall()

colors=[0x0,0xcc0000,0xcc00]

def load(g,fname):
    ret=g.read('xny',fname)[0]
    for i,s in enumerate(ret.sets):
        s.line.color=colors[i]
        s.line.width=2
    return ret


g=G[1]
load(g,'+bdos/+bdos.b002.site003.nl004')
g=G[2]
load(g,'+bdos/+bdos.b003.site004.nl004')




arrange(paperwidth=842,Nx=1,leftgap=0.18,rightgap=0.12,
    hgap=0.1,Ny=2,topgap=0.166,bottomgap=0.166,vgap=0.1,
    aspectratio=1.48292, commonxaxis=True,commonyaxis=True,
    commontitle=True)

printto('bdos.png',dpi=150)