Skip to content

Function GetCoordinateX does not Give Correct Result #2468

@dusko23

Description

@dusko23

Bug Report

Issue: Function GetCoordinate does not give the correct result until the populated plot area is clicked.
image

Reproducing: Open plot windows form and plot scatter plot. Please don't click the plot area. On mouse_move (no buttons pressed) calculate the X coordinate.
The result will always be NaN.
After you click the plot area mouse_move will provide the correct X coordinate.
image

There may be a way around I am not aware of.
However, the calculation should give correct results without extra tricks :-)
Also, setting focus on the plot object is not available. Like plot.Select

System Details

  • ScottPlot Version: 4.1.6.1
  • Operating System: Win 10
  • Application Type: (console, WinForms, WPF, Avalonia, etc)
  • .NET Version: (NET Framework 4.7)

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