LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot XY X-axis problem

I have what I believe to be a very simple problem.  Attached is the code that illustrates it. 
 
I'm trying to use the Plot XY function to plot some data, but the x-axis maximum and minimum values don't seem to work correctly.  In the attached code I have set a constant of the data, and the options I input to the Plot XY sub-vi to do the plotting.  Most of the options work, as the window size scales and moves, the color changes, the axis labels change, but the maximum and minimum values for the x-axis don't change.  Am I missing something here?  The minimum and maximum x-axis values I get are 6.946E4 (minimum) and 7.075E4 (maximum) despite trying to set them to the values seen in the program (69600 and 69800). 

Am I missing something basic and simple, something subtle, or do I have a real bug here? 
 
Thanks!
0 Kudos
Message 1 of 3
(2,619 Views)
Sorry, I'm running Labview 7.0 in case that matters ... thanks again!
0 Kudos
Message 2 of 3
(2,617 Views)

If you open the XY plot VI you will see that it calls a XY Plot Autoscale VI, which is why your axis are being changed. 

You have 2 main options. 

  1. Make a custom copy of the Plot XY VI and then modify it by removing that subVI.  Make sure you make your own copy of it and don't just modify the vi.lib version.
  2. Stop using the picture control and simply plot that data on an XY graph.

The second option is by far the better one unless there is a specific reason you are using a picture control.

Message 3 of 3
(2,610 Views)