autoscale graph to fit window; add zoom/pan