Skip to content

Serial Plotter scaling issue when plotting only negative numbers #4292

Closed
@vicnevicne

Description

@vicnevicne

Hi,

It seems that when the sketch prints only numbers <= 0, the plotter has a scaling bug that causes only a part of the graph to be displayed.

Here is a video showing the issue with a simple case : http://screencast.com/t/fiU63ujP34wH

This is reproduced with the hourly build of 2015/12/11 03:44

Here is the above sketch in text:

#define PAUSE_MS 5

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

void loop() {

  // 20 positive sawtooth : OK
  for (int n = 0; n < 20; n++) {
    for(int value = 0; value < 100; value++) {
      Serial.println(value);
      delay(PAUSE_MS);
    }
  }

  // 20 negative sawtooth : NOK
  for (int n = 0; n < 20; n++) {
    for(int value = 0; value < 100; value++) {
      Serial.println(-value);
      delay(PAUSE_MS);
    }
  }
}

Plotter is a great feature by the way, and multi-trace brings it to a new level :-)
Keep on the good work !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions