fix legend/graph placement