12-28-2017 01:01 PM
I am trying show two plots on an XY Graph and the data I feed into the graph does not match what the graph shows me. When I right click the graph and export the data to excel the numbers are correct but the image seems wrong because the points do not align with the X values.
X1 | Y1 | X2 | Y2 |
2017-12-21 | 85 | 2017-12-21 | 54.4156 |
2017-12-22 | 85 | 2017-12-22 | 47.3879 |
2017-12-27 | 85 | 2017-12-27 | 54.6753 |
Why would my X values on the graph be shifted?
Solved! Go to Solution.
12-28-2017 01:04 PM
These are dates, so what is your timezone? Can you show us your code?
12-28-2017 01:12 PM - edited 12-28-2017 01:12 PM
I have attached a picture of the code I am using. I am reading data from a database and the cut off wires are just a query.
My timezone is US Pacific.
12-28-2017 07:44 PM
If you scan a time, it assumes GMT. If you want to graph relative to your timezone, you need to adjust accordingly.
12-29-2017 09:25 AM
I solved the problem. I was trying to graph just with date and I had time unused selected on the graph but LabVIEW didn't like that and set all the time stamps to 4PM for some reason. I added a segment that sets all the times to midnight before they get to the graph so the data shows up above the correct date.