10-08-2021 12:54 PM - edited 10-08-2021 12:58 PM
I have an issue with my plot that I cant figure out a way to fix. I am programmatically updating the data on an XY plot. The plot itself will auto scale no problem but the plot scale values and tick marks do not auto scale. So when you are watching the screen there are data points getting updated on the plot and the plot is auto scaling in X and Y as the data comes in but the scale numbers and tick marks do not change ... until you click on the plot, then the scale will jump to the correct scale. I would prefer to no have to click the plot to get the scale to match the plot.
I have tried:
1) forcing the plot to redraw after each update which does not make the scale align with the plot.
2) setting the scale factor after each update to hopefully get it to redraw the scale
3) turning off auto scale *works* but I would like it to auto scale.
I posted a code snipit, I'm sure I'm doing something wrong or out of order but I can't see it. Outside of the VI snipit that is posted there is no other programmatic interaction with the XY plot.
I captured these images. The first shows that the scale is off, the Y values of the green and blue data points are ~2 but the scale says ~12 and the X scale is off too. It will continue to plot like this for many data points. If you click on the plot the scale will snap to the grid lines and show the correct scale values.
Thanks for looking
-Jay
Solved! Go to Solution.
10-08-2021 04:30 PM
Sorry, the snippet is useless because of missing classes, controls, and subVIs. I'll end up with an empty VI after placing it.
Why is the a signaling value property. I can't see any event structure.
10-08-2021 04:53 PM
Hello altenbach,
I can't really take a snipit of the entire project, It was just a way of showing how and what values I am setting. What would be the prefered way to convey this information? I would be happy to provide that.
I changed the set value to signaling to see if it would make it update the scales, it didn't. There is no event case that does anything with this plot.
If you know of any plot setting that would force the scale to update programmatically I would like to know.
Thanks
-Jay