Skip to content

Setting IsVisible=false on one plot, hides subsequent plots #3089

@raburton

Description

@raburton

Bug Report

Issue: Setting IsVisible=false on one plot, hides subsequent plots

Reproducing: Add a plot, set IsVisible=False on it, add more plots. Subsequent plots are also invisible (or not there at all?) and even manually setting IsVisible=true on them doesn't help.

private void Form1_Load(object sender, EventArgs e) {

    double[] data1 = new double[10000];
    double[] data2 = new double[10000];

    for (int i = 0; i < 10000; i++) data1[i] = 100;

    Signal s1 = formsPlot1.Plot.Add.Signal(data1);
    s1.LineStyle.Color = Colors.Red;
    s1.LineStyle.Width = 5;
    s1.IsVisible = false;

    Signal s2 = formsPlot1.Plot.Add.Signal(data2);
    s2.LineStyle.Color = Colors.Blue;
    s2.LineStyle.Width = 5;
    s2.IsVisible = true;

}

image

System Details

  • ScottPlot Version: 5.0.10-beta
  • Operating System: Windows 10
  • Application Type: WinForms
  • .NET Version: .NET 8.0

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