Skip to content

Marker size not fully displayed on legend. (shows cropped) #4999

@winsrp

Description

@winsrp

Issue: I'm using scatter plot
**ScottPlot Version: 5.0.55

using basic scatter and putting markers at size 15, make them not fit on legend box.

Image
double[] xs = Generate.Consecutive(51);
double[] ys1 = Generate.Sin(51);
double[] ys2 = Generate.Cos(51);

var sp1 = formsPlot1.Plot.Add.Scatter(xs, ys1);
sp1.LegendText = "Sine";
sp1.LineWidth = 3;
sp1.Color = Colors.Magenta;
sp1.LineWidth = 0;
sp1.MarkerSize = 15;


var sp2 = formsPlot1.Plot.Add.Scatter(xs, ys2);
sp2.LegendText = "Cosine";
sp2.LineWidth = 2;
sp2.Color = Colors.Green;
sp2.LineWidth = 0;
sp2.MarkerSize = 15;

formsPlot1.Plot.ShowLegend();

formsPlot1.Refresh();

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