Ejemplo n.º 1
0
          symbol=Symbol(symbol=0),
          line=Line(color=black))

p.plot(hdata,odata,zero)
p.xaxis(-3.2,-2.4)
p.yaxis(-2,1)


p.legend(x=-2.6,y=0.7,font=2,charsize=1.3)



p.xlabel('d-band center (eV)')
p.ylabel('dissociative adsorption energy (eV)')

p._send('xaxis tick place normal')

p._send('altxaxis on')
p._send('altxaxis ticklabel font 2')
p._send('altxaxis ticklabel char size 1.4')
p._send('altxaxis ticklabel place opposite')
p._send('altxaxis ticklabel type spec')
p._send('altxaxis tick place opposite')
p._send('altxaxis tick spec %d' % (len(labels)-1))

for i in range(len(labels)-1):
    p._send('altxaxis tick major %d,%f' % (i,ed[i]))
    p._send('altxaxis ticklabel %d, "%s"' % (i,labels[i]))

p._send('altxaxis label place opposite')
p._send('altxaxis label char size 1.2')