kill all
paper size 1000,500
read bandweight "+bwsum"
with g1.gr1
line color 0xaaaaaa
gr1 weight factor 1
weight style individual
line width 1
w1 on
name "FPLO B 2s"
plotorder 4
color 0xaa0000
skip 5
symbol fill off

w2 on
name "FPLO B 2p"
plotorder 3
color 0x00aa00
skip 5
symbol fill off

w3 off
plotorder 2
color 0x5555aa
skip 5
symbol fill off

read band "+wanband"
gr2 line color 0xff0000
line width 2

read band "+wanbandtb"
gr3 line color 0xff00
line width 2

# legend box
legend on
  legend font size 12
  legend font subscriptscale 0.75
  legend font color 0x0
  legend line spacing 0.2
  legend symbol marker spacing 0.5
  legend symbol marker width 3
  legend frame on
  legend frame rim style solid
  legend frame rim width 1
  legend frame rim color 0x0
  legend frame border spacing 0.8
  legend frame fill on
  legend frame fill color 0xffffff
  legend position 1.02527 , 0.827041
  legend origin 1 , 0

title "MgB$_2$. FPLO character and Wannier fit"

view 0.15156,0.19754,0.356013,0.589925

g1 itic1 label ""

world y -20,20

########################

read bandweight "+wanbweights" into g2
yaxislabel off
view 0.55156,0.19754,0.356013,0.589925
y major tics off

with g2.gr1
weight style individual
weight factor 2
w1 on
symbol fill off
skip 9
w2 on
symbol fill off
skip 9
w3 on
symbol fill off
skip 9

w4 on
symbol fill off
skip 9
w5 on
symbol fill off
skip 9
w6 on
symbol fill off
skip 9

title "Wannier character"

world y -20,20


print to "wanbweights_sp2_B.eps"