In LabVIEW 7.1, I'm graphing data using the picture control and picture tools ("Calc Scale Specs.vi", "Draw Scale.vi", etc.). I need to do something akin to autoscaling but I can't seem to come up with a good autoscaling algorithm. Does anyone have a good autoscaling system in which I can give a range for the data (data-min, data-max) and it returns a good looking graph range (scale-min, scale-max). I don't want to make any assumptions about the data, so the algorithm should work equally well with data ranging from 1.00001 to 1.0005 and data ranging from -1.0001 to 5E+6. Thanks in advance.
- Jim Cavera
j_cavera@yahoo.com