LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need autoscaling on an XY Graph to ignore one plot

Solved!
Go to solution

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!

0 Kudos
Message 1 of 3
(2,547 Views)
Solution
Accepted by topic author mgoldman

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

Message 2 of 3
(2,532 Views)
Thanks, that did it!  I made the horizontal line a cursor and made the limit plot transparent.  That way, the y-axis autoscaling will still include the limit value but only the infinite line will be shown.
0 Kudos
Message 3 of 3
(2,522 Views)