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

Bar graph emulation #37

Open
Riconec opened this issue Sep 5, 2019 · 0 comments
Open

Bar graph emulation #37

Riconec opened this issue Sep 5, 2019 · 0 comments

Comments

@Riconec
Copy link

Riconec commented Sep 5, 2019

I need to plot array data and to overcome lacking of such functions I did:

  • created curve for each array index as vertical sticks with 50 pen size
  • have message with consecutive indexes (e.g from 0 to 15, array of 16 elements) which are constant over time
  • each curve uses constant index as it's X value

It looks something like this:

| |
| | |
| | | | |


BUT, each time new data come it plots in the same coordinate (since X is fixed for each curve) without clearing previous value (even if I have circular buffer with size of 1). So if I have 50 value it will stay 50 (even if actual data is 10) until bigger value appear. In this case it will become bigger and going back to 50 won't decrease bar size.

Can I somehow clean plot each time new data received?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant