01-19-2023 06:09 AM - edited 01-19-2023 06:12 AM
When you have a graph with autoscale off, set true to DeferPanelUpdates of the owning pane, then set the "Scale Fit" property of the graph to 1 (Autoscale once now), the scale still changes. Is this intended?
I want to use this to get the maximum and minimum of the scale without actually changing it.
See attached for an example.
LabVIEW 2021 SP1 32bit
Windows 10 22H2
01-19-2023 09:21 AM
Mmm... this may be a bug since the plot is redrawn while the axes are unchanged. But what's the point of getting the hypotethical limits of an axis without displaying this range?
01-19-2023 09:27 AM - edited 01-19-2023 09:29 AM
I'm experimenting with animation when you change the range. To zoom back to the autoscale range, I need to know the final values before actually setting them. I know you can just get the min and max of the data points, but the autoscale uses a loose fit, which I like. And it saves me a lot of programming compared to doing it manually.
01-19-2023 09:58 AM
Nice. I don't know a simple way to get those values, but since the actual range is not very different from (min, max), why not animate to (min, max) and set to autoscale as the final step? Assuming that you are zooming out, of course.