Skip to content

SP4: DataLogger should support LineStyle #2972

@vf19961226

Description

@vf19961226

Bug Report

Issue: LineStyle doesn't work on DataLogger. I change the line style to another, but the plot still has shown "solid" style and the legend has changed to the line style I selected. As shown below.

image

Reproducing: The C# code is as follows.

ScottPlot.Plottable.DataLogger line = formsPlot1.Plot.AddDataLogger(color: Color.Red, lineWidth: 1, label: "Line1");
line.Add(1, 100);
line.Add(2, 200);
line.MarkerSize = 5;
line.LineStyle = ScottPlot.LineStyle.Dot;
formsPlot1.Plot.Legend();

formsPlot1.Refresh();

System Details

  • ScottPlot Version: 4.1.68
  • Operating System: Windows 10 Professional
  • Application Type: Winforms
  • .NET Version: .NET Framework 4.6.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGunexpected behaviorGood First IssueThis issue has limited complexity and may be a good start for new contributorsHelp WantedScott won't do this soon, but PRs from the community are welcome!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions