Skip to content

Signal: add the ability to replace the data source #3932

@danieljfarrell

Description

@danieljfarrell

Question:

I am updating a ScottPlot4 application to ScottPlot5.

In ScottPlot4 I could update the signal data by doing,

float[] NewData;
// ... acquire new data
MySignal.Update(NewData);
MySignal.SamplePeriod = NewSamplePeriod;
MySignal.OffsetX = NewXMin;

I like the data source approach, it reminds me of Cocoa/UIKit development. Nice.

Is there any example code on:

  1. how to setup a Signal plot using a float data source in ScottPlot5?
  2. how to update signal data using data source in ScottPlot5?

ScottPlot Version:
5.0.11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions