Skip to content

Legend should consider lineWidth: 0 #790

@AlgoExecutor

Description

@AlgoExecutor

If you use AddScatter and lineWidth: 0 to visualize point clouds, the legend should also show them as points. Currently it is still displayed as line + point. Otherwise it confuses the viewer. Here is an example:

image

Used Version: ScottPlot 4.1.6-beta

Used Code:

...
 formsPlot.Plot.AddScatter(xDate.ToArray(), ci.Data.ToArray(), Color.DeepPink, lineWidth: 0, 5, MarkerShape.filledSquare, label: "2");
formsPlot.Plot.XAxis.DateTimeFormat(true);
formsPlot.Plot.Title($"Test");
formsPlot.Plot.Legend();
formsPlot.Render();

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGunexpected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions