ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.IPlotControl Interface Reference
Inheritance diagram for ScottPlot.IPlotControl:
ScottPlot.Avalonia.AvaPlot ScottPlot.Blazor.BlazorPlotBase ScottPlot.Eto.EtoPlot ScottPlot.Maui.MauiPlot ScottPlot.Testing.MockPlotControl ScottPlot.WPF.WpfPlotBase ScottPlot.WinForms.FormsPlotBase ScottPlot.WinUI.WinUIPlot

Public Member Functions

void Refresh ()
 Render the plot and update the image.
 
void ShowContextMenu (Pixel position)
 Launch the default pop-up menu (typically in response to a right-click) at the given position in the control.
 
float DetectDisplayScale ()
 Determine the DPI scaling ratio of the present display. A value of 1.0 means no scaling, and 1.5 means 150% scaling. This operation may be costly so do not call it frequently.
 
void Reset ()
 Disposes the current Plot and creates a new one for the control.
 
void Reset (Plot plot)
 Loads the given Plot into the control.
 

Properties

Plot Plot [get]
 The primary Plot displayed by this interactive control.
 
IMultiplot Multiplot [get, set]
 The multiplot managed by this interactive control.
 
Interactivity.UserInputProcessor UserInputProcessor [get]
 This object takes in UI events and contains logic for how to respond to them. This is a newer alternative to the older Interaction system.
 
IPlotMenuMenu [get, set]
 Platform-specific logic for managing the context menu.
 
GRContext? GRContext [get]
 Context for hardware-accelerated graphics (or null if not available)
 
float DisplayScale [get, set]
 The value of the present display scaling. Mouse positions are multiplied by this value for pixel/coordinate conversions.
 

Member Function Documentation

◆ DetectDisplayScale()

float ScottPlot.IPlotControl.DetectDisplayScale ( )

Determine the DPI scaling ratio of the present display. A value of 1.0 means no scaling, and 1.5 means 150% scaling. This operation may be costly so do not call it frequently.

Implemented in ScottPlot.Avalonia.AvaPlot, ScottPlot.Blazor.BlazorPlotBase, ScottPlot.Eto.EtoPlot, ScottPlot.Maui.MauiPlot, ScottPlot.WinForms.FormsPlotBase, ScottPlot.WinUI.WinUIPlot, ScottPlot.WPF.WpfPlotBase, and ScottPlot.Testing.MockPlotControl.

◆ Refresh()

void ScottPlot.IPlotControl.Refresh ( )

◆ Reset() [1/2]

void ScottPlot.IPlotControl.Reset ( )

◆ Reset() [2/2]

void ScottPlot.IPlotControl.Reset ( Plot  plot)

◆ ShowContextMenu()

void ScottPlot.IPlotControl.ShowContextMenu ( Pixel  position)

Launch the default pop-up menu (typically in response to a right-click) at the given position in the control.

Implemented in ScottPlot.Avalonia.AvaPlot, ScottPlot.Blazor.BlazorPlotBase, ScottPlot.Eto.EtoPlot, ScottPlot.Maui.MauiPlot, ScottPlot.WinForms.FormsPlotBase, ScottPlot.WinUI.WinUIPlot, ScottPlot.WPF.WpfPlotBase, and ScottPlot.Testing.MockPlotControl.

Property Documentation

◆ DisplayScale

float ScottPlot.IPlotControl.DisplayScale
getset

The value of the present display scaling. Mouse positions are multiplied by this value for pixel/coordinate conversions.

Implemented in ScottPlot.Avalonia.AvaPlot, ScottPlot.Blazor.BlazorPlotBase, ScottPlot.Eto.EtoPlot, ScottPlot.Maui.MauiPlot, ScottPlot.WinForms.FormsPlotBase, ScottPlot.WinUI.WinUIPlot, ScottPlot.WPF.WpfPlotBase, and ScottPlot.Testing.MockPlotControl.

◆ GRContext

GRContext? ScottPlot.IPlotControl.GRContext
get

◆ Menu

IPlotMenu? ScottPlot.IPlotControl.Menu
getset

◆ Multiplot

IMultiplot ScottPlot.IPlotControl.Multiplot
getset

◆ Plot

Plot ScottPlot.IPlotControl.Plot
get

◆ UserInputProcessor

Interactivity.UserInputProcessor ScottPlot.IPlotControl.UserInputProcessor
get

This object takes in UI events and contains logic for how to respond to them. This is a newer alternative to the older Interaction system.

Implemented in ScottPlot.Avalonia.AvaPlot, ScottPlot.Blazor.BlazorPlotBase, ScottPlot.Eto.EtoPlot, ScottPlot.Maui.MauiPlot, ScottPlot.WinForms.FormsPlotBase, ScottPlot.WinUI.WinUIPlot, ScottPlot.WPF.WpfPlotBase, and ScottPlot.Testing.MockPlotControl.


The documentation for this interface was generated from the following file: