Skip to content

SignalConst: Update GetAxisLimits() to include data offsets #4485

@matej-mnoucek

Description

@matej-mnoucek

Issue: Some days ago, we have successfully exposed Data property of SignalConst (#4440). Now XOffset can be set from the outside but it's still not taken into account.

ScottPlot Version: ScottPlot.WPF, 5.0.44

Code Sample:

    var ys = [1, 2, 3, 4, 5]
    var period = 1;
    var offsetX = 100;
    
    // With Signal, the offset works fine
    var signalPlot = plot.Plot.Add.Signal(ys, period)
    signalPlot.Data.XOffset = offsetX;
    
    // For SignalConst, offsetX has no effect
    var signalConstPlot = plot.Plot.Add.SignalConst(ys, period)
    signalConstPlot.Data.XOffset = offsetX;

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