question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

only render the first N data points in Signal plots

See original GitHub issue

If you have live incoming data populating a large array in memory, the first part of the array contains real values and the last part of the array contains zeros that should not be displayed. Consider extending PlottableSignal to allow only rendering the first N data points. Obviously the default would be to render all data points.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
plumforestcommented, Jan 13, 2020

Below is a LabVIEW Chart, similar effect?

labview_chart

0reactions
swhardencommented, Jan 11, 2020

This is what I came up with…

Using a class-level signal:

private ScottPlot.PlottableSignal signal;
signal = formsPlot1.plt.PlotSignal(dataValues);

Update the maxRenderIndex whenever new data has been added:

signal.maxRenderIndex = nextIndex;

Then Render() whenever you want (perhaps on a separate timer): incomingData

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plot Type: Signal Plot - ScottPlot 4.1 Cookbook
Signal plots are optimized to display data with evenly-spaced X values. ... RandomWalk(1000); // only render the first N points of the signal...
Read more >
Call Render() automatically when plottable content (not ...
Bug Description: First signal selected renders as expected. Updating a plot with a different signal does not cause the plot to re-render (i.e. ......
Read more >
Work with Basic Signal Data - MATLAB & Simulink
To add and edit basic signal data, select a signal and click the associated Plot/Edit check box. The Edit tab opens with a...
Read more >
Signal Processing (scipy.signal) — SciPy v1.11.2 Manual
The requirement of equally-spaced knot-points and equally-spaced data points, allows the development of ... The first plot is a normal grayscale photo of....
Read more >
A Complete Guide to Line Charts
Line charts are a fundamental chart type generally used to show change in values across time. Learn how to best use this chart...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found