Skip to content

Incorrect Label persists on the Legend even after the message is no longer in the Plotter  #17

Open
@nmzaheer

Description

@nmzaheer

Describe the problem

Incorrect Label persist even after the message has changed

To reproduce

Equipment

  • Arduino board

Steps

  1. Upload the following sketch to your Arduino board
int random_variable;
int static_variable = 500;

void setup() {
  Serial.begin(9600);
}

void loop() {
  random_variable = random(0, 1000);

  Serial.print("Variable 1:");
  Serial.print(random_variable);
  Serial.print(",");
  Serial.print("Variable 2:");
  Serial.println(static_variable);
}
  1. Open Serial Plottel
  2. Ensure the baud rate is set to 9600 baud
  3. With the Serial Plotter open to the side, now modify the sketch to the following
int random_variable;
int static_variable = 500;

void setup() {
  Serial.begin(9600);
}

void loop() {
  random_variable = random(0, 1000);

  Serial.print("Random:");
  Serial.print(random_variable);
  Serial.print(",");
  Serial.print("Static:");
  Serial.println(static_variable);
}
  1. Upload the modified sketch to the Arduino board and observe the legend on the top corner of the Serial Plotter

Serial Plotter Output
SerialPlotter LabelLegendBug

Steps to reproduce - Video

ArduinoSerialPlotterLabel.Bug.mp4

Expected behavior

SerialPlotter LabelLegendExpect

Arduino IDE version

Version: 2.0.0-rc9.4
Date: 2022-09-08T08:06:43.499Z
CLI Version: 0.27.1 [a900cfb2]

Operating system

Windows

Operating system version

Windows 10 21H2

Additional context

The Legend is updated and shown correctly when

  • The Serial Plotter window is closed & reopened again OR
  • The Plotter is STOP & RUN once

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions