Some of the logic for the rescaling was making more calls to setlimits() and friends than was strictly necessary. I've reviewed and modified this code, making use of morph::range for the max/min range testing. Also, I've brought in more extensive use of morph::range in GraphVisual generally (e.g. Flt datamin_x and Flt datamax_x are now morph::range<Flt> datarange_x, and removed the use of new/delete for graphDataCoords.
Some of the logic for the rescaling was making more calls to setlimits() and friends than was strictly necessary. I've reviewed and modified this code, making use of morph::range for the max/min range testing. Also, I've brought in more extensive use of morph::range in GraphVisual generally (e.g.
Flt datamin_x
andFlt datamax_x
are nowmorph::range<Flt> datarange_x
, and removed the use of new/delete for graphDataCoords.