Interface IPlotControl
- Namespace
- ScottPlot
- Assembly
- ScottPlot.dll
public interface IPlotControl
- Extension Methods
Properties
DisplayScale
The value of the present display scaling. Mouse positions are multiplied by this value for pixel/coordinate conversions.
float DisplayScale { get; set; }
Property Value
GRContext
Context for hardware-accelerated graphics (or null if not available)
GRContext? GRContext { get; }
Property Value
Menu
Platform-specific logic for managing the context menu
IPlotMenu? Menu { get; set; }
Property Value
Multiplot
The multiplot managed by this interactive control
IMultiplot Multiplot { get; set; }
Property Value
Plot
The primary Plot displayed by this interactive control
Plot Plot { get; }
Property Value
UserInputProcessor
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.
UserInputProcessor UserInputProcessor { get; }
Property Value
Methods
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.
float DetectDisplayScale()
Returns
Refresh()
Render the plot and update the image
void Refresh()
Reset()
Disposes the current Plot and creates a new one for the control
void Reset()
Reset(Plot)
Loads the given Plot into the control
void Reset(Plot plot)
Parameters
plot
Plot
ShowContextMenu(Pixel)
Launch the default pop-up menu (typically in response to a right-click) at the given position in the control
void ShowContextMenu(Pixel position)
Parameters
position
Pixel