killall()
g=G[1]
g.title.text='FS cuts bcc Fe (FREL)'

gr=g.read('xynw', 'slabifyres/+cutswithweights.spin1')[0].group

gr.setWeightsStyle(style='connected',factor=0.4)

gr.unifyWeightLabels() # not needed because of the comment in the file
# but if such comment is not there and the file is read as xynw
# data type, we need to call this

gr.useattributes=1
for w in gr.W:
    w.on()

g.legend.position=(1.14215 , -0.1)


g.xaxislabel.text='k$_x$.'
g.xaxislabel.frame.off()
g.xaxislabel.restriction=('y',-0.01)
g.yaxislabel.text='k$_y$.'
g.yaxislabel.frame.off()
g.yaxislabel.restriction=('x',-0.01)

arrange(paperwidth=500,Nx=1,leftgap=0.18,rightgap=0.17,
    hgap=0.1,Ny=1,topgap=0.166,bottomgap=0.184,vgap=0.1,
    aspectratio=1, commonxaxis=True,commonyaxis=True,
    commontitle=True)


printto('fscuts.png')