-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
topic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
Describe the bug
When Serial Plotter is in "STOP" mode, hovering the mouse pointer near a data point results in a popup that shows its value.
🐛 Sometimes this does not work.
I have not managed to figure out what are the exact conditions that cause it, but I can reliably reproduce it.
To Reproduce
- Upload the following sketch to an Arduino board:
void setup() { Serial.begin(9600); while (!Serial) {} delay(1000); // Needed due to bug in IDE2 that causes loss of data received immediately after opening SP/SM for (byte x=0;x<100;x++){ Serial.println(random(10)); } } void loop() {}
- Select Tools > Serial Plotter from the Arduino IDE menus.
- Wait for the data to be plotted.
- Click the STOP button.
- Hover the mouse pointer over the plotted data.
🐛 The values are not shown:
If you do see values, Click the RUN button, reset the board, and repeat the instructions from step (2). - Resize the window.
- Hover the mouse pointer over the plotted data.
🙂 The values are now shown as expected:
Expected behavior
Plotted values are always shown on hover when Serial Plotter is in "STOP" mode.
Desktop
- OS: Windows 10
- Version: 2.0.0-beta.12-snapshot.20f7712
Date: 2021-11-23T17:19:15.791Z
CLI Version: 0.19.1 alpha [718bbbf2]
Additional context
In addition to the window resizing used in the demo, hover values also start working after any of the following UI actions:
- Switching the "Interpolate" setting.
- Hiding and then unhiding the plot line.
Note: the demonstration sketch will only output data once after the program starts. If you are using a board with native USB capability (e.g., MKR, Leonardo, Nano 33), reset the board to get additional data output if you want to try the demo multiple times.
Metadata
Metadata
Assignees
Labels
topic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project