Skip to content

SP5: first point of SignalConst is wrong renderer #4083

@KroMignon

Description

@KroMignon

Issue:

Will fixing LegendText bug in SignalConst I saw that rendering of first point is wrong.
I also noticed that Markers are not rendered!

ScottPlot Version: ScottPlot 5.0.36

Code Sample:

ScottPlot.Plot myPlot = new();

var sign = myPlot.Add.SignalConst(Generate.Sin(count:15, oscillations: 0.5));
sign.LegendText = "My fabulous Const LegendText";
sign.MarkerShape = MarkerShape.FilledCircle;
sign.MarkerSize = 20;
var sign2 = myPlot.Add.Signal(Generate.Sin(count: 15, oscillations: 0.5));
sign2.LegendText = "My fabulous LegendText";
sign2.MarkerSize = 20;
myShowLegend(Alignment.LowerCenter);
myPlot.SavePng("bug_signConst.png", 800, 600);

bug_signConst

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