Skip to content

Update 5.0.31: ScottPlot.Plottables.Crosshair does not show anymore (also not in "Demo" project) #3752

@fdesordi

Description

@fdesordi

Issue: Since the latest update on NuGet the ScottPlot.Plottables.Crosshair does not show anymore on the WPF or WinForms controls.
Version 5.0.23 was still functional.

ScottPlot Version: 5.0.31

Code Sample: ScottPlot Demo "Show Value Under Mouse" : "https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/ShowValueOnHover.cs"

my sample:

ScottPlot.Plot myPlot = new();
double X_Median = (myPlot.Axes.Bottom.Max + this.WpfPlotSweep.Plot.Axes.Bottom.Min) / 2;
double Y_Median = (myPlot.Axes.Left.Max + this.WpfPlotSweep.Plot.Axes.Left.Min) / 2;
var Crosshair = myPlot.Add.Crosshair(X_Median, Y_Median);
Crosshair.LineColor = Colors.DarkOrange;
myPlot.SavePng("bug.png");

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions