Skip to content

Support for generic types #103

@swharden

Description

@swharden

Right now only doubles and double arrays can be plotted. Let's expand ScottPlot to work with generic types.

Performance

Switching to generic types has the potential to reduce performance. Most graph types don't require performance (scatter plots, text, axis lines, and bar graphs). The only two graph types where performance really matters are:

  • PlotSignal
    • Used to display arrays that change often (e.g., the audio monitor app)
    • It must load data fast
    • It must render fast
  • PlotSignalConst
    • Used to interactively display extremely large (but unchanging) data.
    • It can load data slowly (and process it with trees)
    • It must render fast

As long as performance of these features is preserved, I think all Plottables can switch to accepting generic types. PlotSignalConst already accepts generic types (#100) so really the only consideration is preserving performance of PlotSignal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions