Open rnd-ash opened 7 months ago
This problem seems to be that the bounds set by include_x()/include_y()
will not be used except on the first call. These methods set min_auto_bounds
, which is only used to initially set the bounds memory or to restore the initial bounds by double clicking.
Describe the bug
When trying to manually set the data view port with Include X/Y, the plot will show nothing until double clicked.
This is being done to hide the most recent plot point of data in a historic time series (Which is retrieved every 100ms or so), in order to avoid the appearance of stuttering when data comes in. (Stuttering will appear as soon as
plot.auto_bounds([true, true].into())
is used.To Reproduce
Expected behavior Plot should show the requested area immediately, rather than wait for user input.
Screenshots With
plot = plot.auto_bounds([false, false].into());
(Buggy) Kooha-2024-01-26-10-09-39.webmWith
plot = plot.auto_bounds([true, true].into());
(Stutters, but expected behaviour, hence why no autobounds is being used) Kooha-2024-01-26-10-10-42.webm