This is no longer needed, as now the graph element itself is resized upon every redraw.