fix bug in graph_bounds when graph area is 0. Also don't call redraw when bounds have not changed.