Skip to content

SP5: LineWidth is not respected #2739

@dayo05

Description

@dayo05

Bug Report

Issue:
scatter.LineStyle = LineStyle.NoLine not applied. Even this has setten to that value, it renders the line.
quickstart

If you are facing to this bug, you can instead use scatter.LineStyle.Color = Colors.Transparent. This works fine(Not renders the line)
quickstart

Reproducing:

using ScottPlot;

double[] dataX = new double[] { 1, 2, 3, 4, 5 };
double[] dataY = new double[] { 1, 4, 9, 16, 25 };

var myPlot = new ScottPlot.Plot();
var scatter = myPlot.Add.Scatter(dataX, dataY);
scatter.LineStyle = LineStyle.NoLine;

myPlot.SavePng("quickstart.png", 400, 300);

System Details

  • ScottPlot Version: 5.0.6 beta(latest in nuget include prerelease)
  • Operating System: Mac OS 13.4.1
  • Application Type: Console
  • .NET Version: .NET 6

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGunexpected behaviorGood First IssueThis issue has limited complexity and may be a good start for new contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions