Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow display of more data points in Serial Plotter #803

Open
3 tasks done
kubichekster opened this issue Feb 2, 2022 · 31 comments · May be fixed by arduino/arduino-serial-plotter-webapp#32
Open
3 tasks done

Allow display of more data points in Serial Plotter #803

kubichekster opened this issue Feb 2, 2022 · 31 comments · May be fixed by arduino/arduino-serial-plotter-webapp#32
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@kubichekster
Copy link

kubichekster commented Feb 2, 2022

Describe the request

Change the number of plot values back to 500. Or make it a user selectable option

Describe the current behavior

The Arduino IDE 2.x Serial Plotter displays only 50 data values, compared to the Arduino IDE 1.x plotter, which displayed 500 values.

This is a problem because events stream by 10 times faster and are much harder to see. With 500 points we see a much clearer time history of the physical measurements we're making.

I use the Plotter a lot in my K-12 STEM workshops, and this will really have a negative impact.

Arduino IDE version

51f69f6

Operating system

All

Operating system version

Any

Additional context

Additional requests

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details
@kubichekster kubichekster added the type: enhancement Proposed improvement label Feb 2, 2022
@per1234 per1234 added the topic: code Related to content of the project itself label Feb 3, 2022
@per1234 per1234 changed the title Serial Plotter (IDE 2.0) issue Allow display of more data points in Serial Plotter Feb 3, 2022
@ratio-x

This comment was marked as off-topic.

@IanBUK

This comment was marked as off-topic.

@scorbin1

This comment was marked as off-topic.

@fralbo
Copy link

fralbo commented Jul 21, 2022

In fact, the best would be to let us define the horizontal scale.

@InstantMuffin
Copy link
Contributor

InstantMuffin commented Aug 10, 2022

I, too, stumbled upon this.

Obviously it would be nice to have specific features like mentioned above, but I think just to have on par featureset with the former IDE it would be wise to readd display of 500 data points like in the earlier versions. It would be quite odd to have a successor that does not have or has less of a specific feature than the predecessor.
I only noticed this when trying to debug something using the serial plotter and found out that for myself 50 data points were absolutely not adequate for my specific situation.

I tried changing this line
https://github.com/arduino/arduino-serial-plotter-webapp/blob/04a460e0c21609a63c4064f561990c0128c5a0ed/src/ChartPlotter.tsx#L46
in the bundled package that is being fetched/created when building arduino-ide. The build process did not edit the file back to what it was before, however, unfortunately, it did not increase the number of data points.
Being unfamiliar with the build process, I don't know if this is in fact the wrong line of code to adapt, or if the change just doesn't make it into the final arduino-ide build for some reason.

The change in itself would seem to be rather trivial, given that and the featureset of the predecessor I would really like to see the this implemented before the final release.

@SaturdayScience
Copy link

I'm running rc9.4 on Linux Mint 21 and the plotter frustrates me. With data once per second plotter shows only 5 X-axis data sets no matter how large I make the window. At fast rate such as 100 data sets / second it shows 50. I can't seem to display 500 seat.

@FarhanKhosravi

This comment was marked as off-topic.

@SvenRosvall

This comment was marked as off-topic.

@fralbo

This comment was marked as off-topic.

@pointsplitter

This comment was marked as off-topic.

@ArnieO

This comment was marked as off-topic.

@bruno-zarokian

This comment was marked as off-topic.

@per1234

This comment was marked as off-topic.

@InstantMuffin

This comment was marked as off-topic.

@per1234
Copy link
Contributor

per1234 commented Oct 10, 2022

Hi all. We really appreciate the feedback about how the Arduino IDE 2.x Serial Plotter can be improved. However, once the message has been received, additional comments that don't add any new information can add up to a lot of notifications for those of us who watch this repository to keep up with the development work.

If you only want to express support then I suggest the use of GitHub's "Reactions" feature.

Discussion is always welcome over on the Arduino Forum:

https://forum.arduino.cc/

Thanks in advance for your cooperation.
Per

@Alex-Tsyganok
Copy link

The serial plotter is a web application that is installed as part of Arduino IDE since it's running as a web application, bundled source code can be modified on a local machine.

The package can be found in the installation folder of Arduino IDE
\Arduino IDE\resources\app\node_modules\arduino-serial-plotter-webapp\build\static\js\
main.35ae02cb.chunk.js can be modified to change values threshold value, need to replace U=Object(o.useState)(50) with U=Object(o.useState)(5000) it will increase maximum data points to 5000.

Tested with Arduino IDE 2.0.2 version.
image

@fralbo

This comment was marked as off-topic.

@kubichekster

This comment was marked as off-topic.

@falk-stefan

This comment was marked as off-topic.

@zapta

This comment was marked as off-topic.

@Leomirdroid

This comment was marked as off-topic.

@Ralf-W

This comment was marked as off-topic.

@RolfHut

This comment was marked as off-topic.

@Dlloydev
Copy link

Dlloydev commented May 5, 2023

I consider the auto scaling of plot width a valuable feature. As it stands now, the plot width auto scales to full width as the data fills to 50 samples, then the plotter becomes a sliding window.

Plotter

It would be useful to have the plot width auto scale to full width as the data fills to 500 samples (or a user set limit), then the sliding window activates.

Same code, 100 samples shown on plotter using Arduino IDE 1.8.19 ...

image

@FarhanKhosravi

This comment was marked as off-topic.

@zapta

This comment was marked as off-topic.

@Pkanna10

This comment was marked as off-topic.

@kubichekster

This comment was marked as off-topic.

@per1234

This comment was marked as off-topic.

@samstafford

This comment was marked as off-topic.

@arduino arduino locked as too heated and limited conversation to collaborators Jul 25, 2023
@per1234
Copy link
Contributor

per1234 commented Jul 29, 2023

A PR for adding a menu to control the number of data points has been submitted to the repository where the Serial Plotter codebase is hosted:

arduino/arduino-serial-plotter-webapp#32

Please refrain from commenting on that PR thread unless you have some significant and unique information to add. If you only want to express your support for the PR or a comment in the thread, use the "Reactions" feature to add a 👍, etc. If the thread becomes a source of notification noise due to the addition of comments that don't add significant and unique information, as happened here, I will be forced to lock the conversation, which might prevent the addition of comments that are actually of value.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.