fixing graph borders and margins