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

Fast Line Drawing Mode #27

Open
Biehrer opened this issue Oct 23, 2020 · 0 comments
Open

Fast Line Drawing Mode #27

Biehrer opened this issue Oct 23, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Biehrer
Copy link
Owner

Biehrer commented Oct 23, 2020

  • Implement a fast line drawing mode: This mode should reduce the number of lines drawn without affecting the chart appearance.

Problem:
The plot area width is usually a few to 1920 pixels.
For a sweep chart, which flows from the left to the right screen border, if there are a lot more data points (eg. 10k data points, when using a timerange of 10 seconds and a signal with a frequency of 1 kHz) than the plot area pixel width, many of the points are drawn at the same x-pixel coordinate.

What is visible at each x-pixel position is a vertical line, which connects the minimum point and the maximum point at the x-pixel-position.

TODO:
Implement fast line drawing mode, which automatically detects that there are too many points at the same x-pixel coordinate, and draws only a line segment joining the extreme points(min and max) at that coordinate. The resulting line should be visually indistinguishable from a line in which the line segments join all data points.

@Biehrer Biehrer added enhancement New feature or request good first issue Good for newcomers labels Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant