Skip to content

MarkerPlot: clip when outside data area #1423

@lucabat

Description

@lucabat

Bug Report

Issue:
I'm using a point and a crosshair to highlight a specific point in a graph.
The crosshair works as expected but the point is rendered also when it goes outside the axis ranges.
This happens when the user moves the axis around until the point goes outside the axes ranges
(in the example below the point has coordinates (100,0)).

vNhLLTphdV

Reproducing:

The point is added when the graph is initialized

image

and then is just changed its coordinates in the following way (and its .IsVisible property to show/hide the point).
image

Maybe I'm doing something wrong in how I use a point, but I've followed this example:
https://scottplot.net/faq/mouse-position/#show-value-near-mouse-with-winforms

System Details

  • ScottPlot Version: 4.1.27
  • Operating System: Windows 10
  • Application Type: WPF
  • .NET Version: NET Framework 4.7.2

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