06-09-2009 01:40 PM
I am currently setting my range by getting the min and max points and +- 250. my Range = new Range (min - 250, max + 250). Sometimes I may have a value at -20 and then another at 30000 and can only one and have to zoom and pan and edit the range to see the whole thing. Therefore, setting the range is done in order to keep all points on the graph when it is loaded.
However, I would still like to edit, zoom and pan...but I am unable to . I am able to type in another number for the range, it changes, then quickly snaps back to what it was previously set to. I have even set the CanScale to true for both the y and x axis. Any help?
06-10-2009 12:18 PM
06-10-2009 03:30 PM
06-11-2009 06:14 PM
Here is a VS2008/Measurement Studio 8.6 project that uses a toggle switch that programmatically changes the range of the X-axis. The same concept can be used for the Y-axis. The Mode for the graph is set to Fixed, and the range is set by the xAxis.Range property. For example:
xAxis.Range = new Range(0, 10);
Does this help? If not, can you explain what you mean by CanScale? I'm not familiar with that property.