Skip to content

WpfPlot: Need sample app to demonstrate display scaling #3585

@MagicFawkes

Description

@MagicFawkes

Issue:
Mouse position is shiftet if windows 11 screen scale is set to 125% (e.g. I use the application on a notebook), on 100% it is okay and works fine

ScottPlot Version:
ScottPlot.WPF 5.0.23

Code Sample:

    var position = System.Windows.Input.Mouse.GetPosition(WpfPlot1);
    var coordinates = WpfPlot1.Plot.GetCoordinates(new Pixel(position.X, position.Y));

    double x = coordinates.X;
    double y = coordinates.Y;

AxisLineQuickstart
windows scale

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