tweak layout so that graph stays fully in the screen's layoutBounds