This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
Percieved Choppyness in Plot panel once a second due to rounding. #7444
Labels
bug
The user is unable to complete a supported task, or the software does not behave as intended
Description
When using the plot panel to visualize a topic over a connection a visible choppiness happens once a second due to a weird rounding of the timestamp. All timestamps (or time since start of connection) get rounded to 1 decimal, for instance 252.222 would get rounded to 252.2. However, if the timestamp has a 0 as the first decimal, then an additional decimal gets displayed, e.g. 252.01112 becomes 252.01. This causes a noticeable choppiness as the plot window is resized to fit this extra decimal.
An example of this can be seen in the following gif (although perhaps not super clearly due to compression): https://imgur.com/L1CLaC4
Steps To Reproduce
Open a connection, open the plot panel and visualize any topic
Expected Behavior
Instead round the timestamp to be 1 decimal regardless, ensuring that these resizes happen less frequently (i.e. only at 1->10, 10->100, 100->1000 etc)
The text was updated successfully, but these errors were encountered: