|
ScottPlot
|
Public Member Functions | |
| IEnumerable< IAxis > | GetAxes () |
| All axes. | |
| IEnumerable< IAxis > | GetAxes (Edge edge) |
| All axes with the given edge. | |
| AxisManager (Plot plot) | |
| Contains state and logic for axes. | |
| void | Color (Color color) |
| Apply a single color to the label, tick labels, tick marks, and frame of all axes. | |
| void | Color (IAxis axis, Color color) |
| Apply a single color to the label, tick labels, tick marks, and frame of the specified axis. | |
| void | Frame (bool enable) |
| Set visibility of the frame on every axis. | |
| void | FrameWidth (float width) |
| Set thickness of the frame on every axis. | |
| void | FrameColor (Color color) |
| Set color of the frame on every axis. | |
| void | Remove (Edge edge) |
| Remove all axes that lie on the given edge. | |
| void | Remove (IAxis axis) |
| Remove the given axis from the plot. | |
| void | Remove (IPanel panel) |
| Remove the given Panel. | |
| void | AddPanel (IPanel panel) |
| DateTimeXAxis | DateTimeTicksBottom () |
| Remove all bottom axes, create a DateTime bottom axis, add it to the plot, and return it. | |
| BottomAxis | NumericTicksBottom () |
| Remove all bottom axes, create a numeric bottom axis, add it to the plot, and return it. | |
| Plottables.TickModifierLabel | SetupMultiplierNotation (IAxis axis) |
| void | AddYAxis (IYAxis axis) |
| void | AddXAxis (IXAxis axis) |
| LeftAxis | AddLeftAxis () |
| Crete a new axis, add it to the plot, and return it. | |
| void | AddLeftAxis (IYAxis axis) |
| RightAxis | AddRightAxis () |
| Crete a new axis, add it to the plot, and return it. | |
| void | AddRightAxis (IYAxis axis) |
| BottomAxis | AddBottomAxis () |
| Crete a new axis, add it to the plot, and return it. | |
| void | AddBottomAxis (IXAxis axis) |
| TopAxis | AddTopAxis () |
| Crete a new axis, add it to the plot, and return it. | |
| void | AddTopAxis (IXAxis axis) |
| void | SetLimitsX (double left, double right, IXAxis xAxis) |
| void | SetLimitsY (double bottom, double top, IYAxis yAxis) |
| void | SetLimitsX (double left, double right) |
| void | SetLimitsY (double bottom, double top) |
| void | SetLimits (double left, double right, double bottom, double top) |
| void | SetLimits (double left, double right, double bottom, double top, IXAxis xAxis, IYAxis yAxis) |
| void | SetLimits (double? left=null, double? right=null, double? bottom=null, double? top=null) |
| void | SetLimits (CoordinateRect rect) |
| void | SetLimitsX (CoordinateRect limits) |
| void | SetLimitsY (CoordinateRect limits) |
| void | SetLimitsX (AxisLimits limits) |
| void | SetLimitsX (AxisLimits limits, IXAxis xAxis) |
| void | SetLimitsY (AxisLimits limits) |
| void | SetLimitsY (AxisLimits limits, IYAxis yAxis) |
| void | SetLimits (AxisLimits limits) |
| void | SetLimits (AxisLimits limits, IXAxis xAxis, IYAxis yAxis) |
| void | SetLimits (CoordinateRange xRange, CoordinateRange yRange) |
| void | InvertX () |
| Adjust the horizontal axis so values descend from left to right. | |
| void | RectifyX () |
| Adjust the horizontal axis so values ascend from left to right. | |
| void | InvertY () |
| Adjust the vertical axis so values descend from bottom to top. | |
| void | RectifyY () |
| Adjust the vertical axis so values ascend from bottom to top. | |
| AxisLimits | GetLimits () |
| Return the 2D axis limits for the default axes. | |
| AxisLimits | GetLimits (IXAxis xAxis, IYAxis yAxis) |
| Return the 2D axis limits for the given X/Y axis pair. | |
| AxisLimits | GetLimits (IAxes axes) |
| Return the 2D axis limits for the given X/Y axis pair. | |
| AxisLimits | GetDataLimits () |
| Return the 2D axis limits of data for all plottables using the default axes. | |
| AxisLimits | GetDataLimits (IXAxis xAxis, IYAxis yAxis) |
| Return the 2D axis limits of data for all plottables using the given axes. | |
| void | AutoScale (bool? invertX=null, bool? invertY=null) |
| Automatically scale all axes to fit the data in all plottables. | |
| void | AutoScale (IXAxis xAxis, IYAxis yAxis, bool horizontal=true, bool vertical=true) |
| Autoscale the given axes to accommodate the data from all plottables that use them. | |
| void | AutoScaleExpand () |
| Automatically expand the default axes to fit the data in all plottables. | |
| void | AutoScaleExpand (IXAxis xAxis, IYAxis yAxis) |
| Automatically expand the provided axes to fit the data in all plottables. | |
| void | AutoScaleExpandX (IXAxis xAxis) |
| Automatically expand the provided axes horizontally to fit the data in all plottables. | |
| void | AutoScaleExpandX () |
| Automatically expand the default horizontal axis to fit the data in all plottables. | |
| void | AutoScaleExpandY (IYAxis yAxis) |
| Automatically expand the provided axes vertically to fit the data in all plottables. | |
| void | AutoScaleExpandY () |
| Automatically expand the default vertical axis to fit the data in all plottables. | |
| void | AutoScaleX () |
| Autoscale the bottom horizontal axis limits to fit the data of all plotted objects. | |
| void | AutoScaleY () |
| Autoscale the left vertical axis limits to fit the data of all plotted objects. | |
| void | AutoScaleX (IXAxis xAxis) |
| Autoscale the supplied horizontal axis limits to fit the data of all plotted objects. | |
| void | AutoScaleY (IYAxis yAxis) |
| Autoscale the supplied vertical axis limits to fit the data of all plotted objects. | |
| void | AutoScale (IEnumerable< IPlottable > plottables) |
| Autoscale the default (left and bottom) axis limits to fit the data of the supplied plottables. | |
| void | AutoScaleX (IEnumerable< IPlottable > plottables) |
| Autoscale the default bottom horizontal axis limits to fit the data of the supplied plottables. | |
| void | AutoScaleY (IEnumerable< IPlottable > plottables) |
| Autoscale the default left vertical axis limits to fit the data of the supplied plottables. | |
| void | Pan (Pixel mouseDown, Pixel mouseUp) |
| Adjust limits all axes to pan the pixel distance between two points. | |
| void | Pan (PixelOffset offset) |
| Adjust limits all axes to pan given pixel distance. | |
| void | Pan (CoordinateOffset distance) |
| Adjust limits all axes to pan by the given distance in coordinate space. | |
| void | Zoom (Pixel px1, Pixel px2) |
| Modify zoom for all axes as if the mouse were right-clicked and dragged. | |
| void | Zoom (Pixel px, double fracX, double fracY) |
| Zoom into (frac >1) or out of (frac <1) the given point. | |
| void | Zoom (double fracX=1.0, double fracY=1.0) |
| Modify limits of all axes to apply the given zoom. Fractional values >1 zoom in and <1 zoom out. | |
| void | ZoomIn (double fracX=1.0, double fracY=1.0) |
| Modify limits of all axes to apply the given zoom. Fractional values >1 zoom in and <1 zoom out. | |
| void | ZoomOut (double x=1.0, double y=1.0) |
| Zoom out so the new view is the given fraction of the original view. | |
| void | ZoomOutX (double x=1.0) |
| Zoom out so the new view is the given fraction of the original view. | |
| void | ZoomOutY (double y=1.0) |
| Zoom out so the new view is the given fraction of the original view. | |
| void | Margins () |
| Reset plot data margins to their default value. | |
| void | Margins (double horizontal=0.1, double vertical=.15) |
| Define the amount of whitespace to place around the data area when calling AutoScale(). Values are a fraction from 0 (tightly fit the data) to 1 (lots of whitespace). | |
| void | MarginsX (double horizontal=0.1) |
| Define the amount of whitespace to place on the left and right of the data area when calling AutoScale(). Values are a fraction from 0 (tightly fit the data) to 1 (lots of whitespace). | |
| void | MarginsY (double vertical=0.15) |
| Define the amount of whitespace to place on the bottom and top of the data area when calling AutoScale(). Values are a fraction from 0 (tightly fit the data) to 1 (lots of whitespace). | |
| void | TightMargins () |
| Auto-scale to tightly fit the data so there is no spacing between data points and the edge of the data area. | |
| void | Margins (double left=.05, double right=.05, double bottom=.07, double top=.07) |
| Define the amount of whitespace to place around the data area when calling AutoScale(). Values are a fraction from 0 (tightly fit the data) to 1 (lots of whitespace). | |
| void | SquareUnits () |
| Force pixels to have a 1:1 scale ratio. This allows circles to always appear as circles and not stretched ellipses. | |
| void | SquareUnits (bool enable) |
| If true, force pixels to have a 1:1 scale ratio. This allows circles to always appear as circles and not stretched ellipses. If false, disable axis rules related to square units and restore default behavior. | |
| void | Frameless (bool showTitle=false) |
| Disable visibility of all axes and titles so the data area fills the entire figure. | |
| void | AntiAlias (bool enable) |
| Set anti-aliasing for axis frames, tick marks, and grid lines. | |
| void | Hairline (bool enable) |
| Hairline mode causes lines to always render exactly 1 pixel wide regardless of Plot.ScaleFactor. This function controls hairline behavior for all axis frames. tick marks, and grid lines. | |
| void | Link (IAxis thisPlotAxis, IAxis otherPlotAxis, Plot otherPlot) |
| Add a link to another plot's axis so its limits update when limits of an axis from this plot changes. | |
| void | Link (IPlotControl target, bool x=true, bool y=true) |
| Add a link to the target plot control so its axis limits update when this plot's axis limits change. | |
| void | Link (Plot target, bool x=true, bool y=true) |
| Add a link to the target plot so its axis limits update when this plot's axis limits change. | |
| void | UnlinkAll () |
| Remove all linked axes rules. | |
| void | Unlink (IPlotControl target) |
| Remove all linked axes rules involving the target plot control. | |
| void | Unlink (Plot target) |
| Remove all linked axes rules involving the target plot. | |
| void | Unlink (IAxis axis) |
| Remove all linked axes rules involving the given axis. | |
Static Public Member Functions | |
| static void | DefaultContinuousAutoscaleAction (RenderPack rp) |
Properties | |
| IAutoScaler | AutoScaler = new AutoScalers.FractionalAutoScaler(.1, .15) [get, set] |
| Logic that determines padding around the data area when AutoScale() is called. | |
| Panels.TitlePanel | Title = new() [get] |
| A special panel. | |
| IXAxis | Top [get] |
| The primary horizontal axis above the plot. | |
| IXAxis | Bottom [get] |
| The primary horizontal axis below the plot. | |
| IYAxis | Left [get] |
| The primary vertical axis to the left of the plot. | |
| IYAxis | Right [get] |
| The primary vertical axis to the right of the plot. | |
| bool | LimitsHaveBeenSet [get] |
| Indicates whether the axis limits have been set (manually or by autoscale) | |
| DefaultGrid | DefaultGrid [get, set] |
| The standard grid that is added when a Plot is created. Users can achieve custom grid functionality by disabling the visibility of this grid and adding their own classes to the List of CustomGrids. | |
| List< IGrid > | CustomGrids = [] [get] |
| List of custom grids. If in use, it is likely the default grid visibility should be disabled. | |
| List< IGrid > | AllGrids [get] |
| Return the DefaultGrid and all CustomGrids | |
| List< IAxisRule > | Rules = [] [get] |
| Rules that are applied before each render. | |
| bool | ContinuouslyAutoscale = false [get, set] |
| If enabled, AutoScale() will be called at the start of each render. This can negatively impact performance of plots with an extremely large number of data points. | |
| Action< RenderPack > | ContinuousAutoscaleAction = DefaultContinuousAutoscaleAction [get, set] |
| When ContinuouslyAutoscale is true, this action is called before each frame is rendered. Users can assign their own static function to customize continuous autoscaling behavior. | |
|
inline |
Contains state and logic for axes.
|
inline |
Crete a new axis, add it to the plot, and return it.
|
inline |
|
inline |
Crete a new axis, add it to the plot, and return it.
|
inline |
|
inline |
|
inline |
Crete a new axis, add it to the plot, and return it.
|
inline |
|
inline |
Crete a new axis, add it to the plot, and return it.
|
inline |
|
inline |
|
inline |
|
inline |
Set anti-aliasing for axis frames, tick marks, and grid lines.
| enable |
|
inline |
Automatically scale all axes to fit the data in all plottables.
|
inline |
Autoscale the default (left and bottom) axis limits to fit the data of the supplied plottables.
|
inline |
Autoscale the given axes to accommodate the data from all plottables that use them.
|
inline |
Automatically expand the default axes to fit the data in all plottables.
Automatically expand the provided axes to fit the data in all plottables.
|
inline |
Automatically expand the default horizontal axis to fit the data in all plottables.
|
inline |
Automatically expand the provided axes horizontally to fit the data in all plottables.
|
inline |
Automatically expand the default vertical axis to fit the data in all plottables.
|
inline |
Automatically expand the provided axes vertically to fit the data in all plottables.
|
inline |
Autoscale the bottom horizontal axis limits to fit the data of all plotted objects.
|
inline |
Autoscale the default bottom horizontal axis limits to fit the data of the supplied plottables.
|
inline |
Autoscale the supplied horizontal axis limits to fit the data of all plotted objects.
|
inline |
Autoscale the left vertical axis limits to fit the data of all plotted objects.
|
inline |
Autoscale the default left vertical axis limits to fit the data of the supplied plottables.
|
inline |
Autoscale the supplied vertical axis limits to fit the data of all plotted objects.
|
inline |
Apply a single color to the label, tick labels, tick marks, and frame of all axes.
Apply a single color to the label, tick labels, tick marks, and frame of the specified axis.
|
inline |
Remove all bottom axes, create a DateTime bottom axis, add it to the plot, and return it.
|
inlinestatic |
|
inline |
Set visibility of the frame on every axis.
|
inline |
Set color of the frame on every axis.
|
inline |
Disable visibility of all axes and titles so the data area fills the entire figure.
|
inline |
Set thickness of the frame on every axis.
| IEnumerable< IAxis > ScottPlot.AxisManager.GetAxes | ( | ) |
All axes.
| IEnumerable< IAxis > ScottPlot.AxisManager.GetAxes | ( | Edge | edge | ) |
All axes with the given edge.
|
inline |
Return the 2D axis limits of data for all plottables using the default axes.
|
inline |
Return the 2D axis limits of data for all plottables using the given axes.
|
inline |
Return the 2D axis limits for the default axes.
|
inline |
Return the 2D axis limits for the given X/Y axis pair.
|
inline |
Return the 2D axis limits for the given X/Y axis pair.
|
inline |
Hairline mode causes lines to always render exactly 1 pixel wide regardless of Plot.ScaleFactor. This function controls hairline behavior for all axis frames. tick marks, and grid lines.
|
inline |
Adjust the horizontal axis so values descend from left to right.
|
inline |
Adjust the vertical axis so values descend from bottom to top.
Add a link to another plot's axis so its limits update when limits of an axis from this plot changes.
| void ScottPlot.AxisManager.Link | ( | IPlotControl | target, |
| bool | x = true, |
||
| bool | y = true |
||
| ) |
Add a link to the target plot control so its axis limits update when this plot's axis limits change.
|
inline |
Add a link to the target plot so its axis limits update when this plot's axis limits change.
|
inline |
Reset plot data margins to their default value.
|
inline |
Define the amount of whitespace to place around the data area when calling AutoScale(). Values are a fraction from 0 (tightly fit the data) to 1 (lots of whitespace).
|
inline |
Define the amount of whitespace to place around the data area when calling AutoScale(). Values are a fraction from 0 (tightly fit the data) to 1 (lots of whitespace).
|
inline |
Define the amount of whitespace to place on the left and right of the data area when calling AutoScale(). Values are a fraction from 0 (tightly fit the data) to 1 (lots of whitespace).
|
inline |
Define the amount of whitespace to place on the bottom and top of the data area when calling AutoScale(). Values are a fraction from 0 (tightly fit the data) to 1 (lots of whitespace).
|
inline |
Remove all bottom axes, create a numeric bottom axis, add it to the plot, and return it.
|
inline |
Adjust limits all axes to pan by the given distance in coordinate space.
Adjust limits all axes to pan the pixel distance between two points.
|
inline |
Adjust limits all axes to pan given pixel distance.
|
inline |
Adjust the horizontal axis so values ascend from left to right.
|
inline |
Adjust the vertical axis so values ascend from bottom to top.
|
inline |
Remove all axes that lie on the given edge.
|
inline |
Remove the given axis from the plot.
|
inline |
Remove the given Panel.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Force pixels to have a 1:1 scale ratio. This allows circles to always appear as circles and not stretched ellipses.
|
inline |
If true, force pixels to have a 1:1 scale ratio. This allows circles to always appear as circles and not stretched ellipses. If false, disable axis rules related to square units and restore default behavior.
|
inline |
Auto-scale to tightly fit the data so there is no spacing between data points and the edge of the data area.
|
inline |
Remove all linked axes rules involving the given axis.
| void ScottPlot.AxisManager.Unlink | ( | IPlotControl | target | ) |
Remove all linked axes rules involving the target plot control.
|
inline |
Remove all linked axes rules involving the target plot.
| void ScottPlot.AxisManager.UnlinkAll | ( | ) |
Remove all linked axes rules.
|
inline |
Modify limits of all axes to apply the given zoom. Fractional values >1 zoom in and <1 zoom out.
|
inline |
Zoom into (frac >1) or out of (frac <1) the given point.
Modify zoom for all axes as if the mouse were right-clicked and dragged.
|
inline |
Modify limits of all axes to apply the given zoom. Fractional values >1 zoom in and <1 zoom out.
|
inline |
Zoom out so the new view is the given fraction of the original view.
|
inline |
Zoom out so the new view is the given fraction of the original view.
|
inline |
Zoom out so the new view is the given fraction of the original view.
|
get |
Return the DefaultGrid and all CustomGrids
|
getset |
Logic that determines padding around the data area when AutoScale() is called.
|
get |
The primary horizontal axis below the plot.
|
getset |
When ContinuouslyAutoscale is true, this action is called before each frame is rendered. Users can assign their own static function to customize continuous autoscaling behavior.
|
getset |
If enabled, AutoScale() will be called at the start of each render. This can negatively impact performance of plots with an extremely large number of data points.
|
get |
List of custom grids. If in use, it is likely the default grid visibility should be disabled.
|
getset |
The standard grid that is added when a Plot is created. Users can achieve custom grid functionality by disabling the visibility of this grid and adding their own classes to the List of CustomGrids.
|
get |
The primary vertical axis to the left of the plot.
|
get |
Indicates whether the axis limits have been set (manually or by autoscale)
|
get |
The primary vertical axis to the right of the plot.
|
get |
Rules that are applied before each render.
|
get |
A special panel.
|
get |
The primary horizontal axis above the plot.