Skip to content

Plot: PanCenter(coordinate) and how to change mouse button actions in ScottPlot 4 #2293

@dusko23

Description

@dusko23

RightClickDragZoom should be divided into two separate properties.
I would like to disable the right button zoom but would definitely like to pan with the right button.

My target scenario:

  • The left mouse click places a tooltip.
  • Right mouse down and drag performs panning.

Currently, I can pan with the left mouse. RightClickDragZoom is set to False to get rid of Zoom.
However, the left click generates a tooltip as well.
To clear a tooltip I clear everything.
ScotttPlot starts from scratch and the tooltip is typically out of the display area after a clean start.

I googled a lot and did not find a way to center a plot at specified x and y.
Like myPLOT.Plot.Center(X as double, Y as double)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions