11-19-2008 11:39 AM
I am trying to make autoscaling ignore one of three plots on an XY Graph. My program plots a set of data points, which approach and can exceed a critical limit. My graph has three plots: the points under the limit are green dots, the points over the limit are red dots, and the limit is a horizontal dashed line stretching between two points. Initially, the endpoints of the line were set at the limits of the data x-values. The autoscaling worked fine, of course, but the line crawled along with the data as they are plotted. As this limit is a fixed value, I would like the line to stretch completely across the screen and remain stationary.
To this end, I set the endpoints well beyond the limits of the data x-values. Now, the autoscaling tracks with the endpoints of the limit line and the actual data are compacted in the middle of the graph. Is there any way I can make the autoscaling track only with the data points and ignore the line, or is the best option simply to write my own autoscaling code?
Thanks!
Solved! Go to Solution.
11-19-2008 12:30 PM
You could wirte your own autoscaling, but I'm thinking an easier thing to do is to change your horizontal line from a plot to a cursor. You can use the cursor list property or the active cursor property (of graph control) to control the positioning and color of your cursor, and you won't have to ever worry about it's end points (it doesn't have any).
Chris
11-19-2008 01:32 PM