ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Properties | List of all members
ScottPlot.AxisManager Class Reference

Public Member Functions

IEnumerable< IAxisGetAxes ()
 All axes.
 
IEnumerable< IAxisGetAxes (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< IGridCustomGrids = [] [get]
 List of custom grids. If in use, it is likely the default grid visibility should be disabled.
 
List< IGridAllGrids [get]
 Return the DefaultGrid and all CustomGrids
 
List< IAxisRuleRules = [] [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.
 

Constructor & Destructor Documentation

◆ AxisManager()

ScottPlot.AxisManager.AxisManager ( Plot  plot)
inline

Contains state and logic for axes.

Member Function Documentation

◆ AddBottomAxis() [1/2]

BottomAxis ScottPlot.AxisManager.AddBottomAxis ( )
inline

Crete a new axis, add it to the plot, and return it.

◆ AddBottomAxis() [2/2]

void ScottPlot.AxisManager.AddBottomAxis ( IXAxis  axis)
inline

◆ AddLeftAxis() [1/2]

LeftAxis ScottPlot.AxisManager.AddLeftAxis ( )
inline

Crete a new axis, add it to the plot, and return it.

◆ AddLeftAxis() [2/2]

void ScottPlot.AxisManager.AddLeftAxis ( IYAxis  axis)
inline

◆ AddPanel()

void ScottPlot.AxisManager.AddPanel ( IPanel  panel)
inline

◆ AddRightAxis() [1/2]

RightAxis ScottPlot.AxisManager.AddRightAxis ( )
inline

Crete a new axis, add it to the plot, and return it.

◆ AddRightAxis() [2/2]

void ScottPlot.AxisManager.AddRightAxis ( IYAxis  axis)
inline

◆ AddTopAxis() [1/2]

TopAxis ScottPlot.AxisManager.AddTopAxis ( )
inline

Crete a new axis, add it to the plot, and return it.

◆ AddTopAxis() [2/2]

void ScottPlot.AxisManager.AddTopAxis ( IXAxis  axis)
inline

◆ AddXAxis()

void ScottPlot.AxisManager.AddXAxis ( IXAxis  axis)
inline

◆ AddYAxis()

void ScottPlot.AxisManager.AddYAxis ( IYAxis  axis)
inline

◆ AntiAlias()

void ScottPlot.AxisManager.AntiAlias ( bool  enable)
inline

Set anti-aliasing for axis frames, tick marks, and grid lines.

Parameters
enable

◆ AutoScale() [1/3]

void ScottPlot.AxisManager.AutoScale ( bool?  invertX = null,
bool?  invertY = null 
)
inline

Automatically scale all axes to fit the data in all plottables.

◆ AutoScale() [2/3]

void ScottPlot.AxisManager.AutoScale ( IEnumerable< IPlottable plottables)
inline

Autoscale the default (left and bottom) axis limits to fit the data of the supplied plottables.

◆ AutoScale() [3/3]

void ScottPlot.AxisManager.AutoScale ( IXAxis  xAxis,
IYAxis  yAxis,
bool  horizontal = true,
bool  vertical = true 
)
inline

Autoscale the given axes to accommodate the data from all plottables that use them.

◆ AutoScaleExpand() [1/2]

void ScottPlot.AxisManager.AutoScaleExpand ( )
inline

Automatically expand the default axes to fit the data in all plottables.

◆ AutoScaleExpand() [2/2]

void ScottPlot.AxisManager.AutoScaleExpand ( IXAxis  xAxis,
IYAxis  yAxis 
)
inline

Automatically expand the provided axes to fit the data in all plottables.

◆ AutoScaleExpandX() [1/2]

void ScottPlot.AxisManager.AutoScaleExpandX ( )
inline

Automatically expand the default horizontal axis to fit the data in all plottables.

◆ AutoScaleExpandX() [2/2]

void ScottPlot.AxisManager.AutoScaleExpandX ( IXAxis  xAxis)
inline

Automatically expand the provided axes horizontally to fit the data in all plottables.

◆ AutoScaleExpandY() [1/2]

void ScottPlot.AxisManager.AutoScaleExpandY ( )
inline

Automatically expand the default vertical axis to fit the data in all plottables.

◆ AutoScaleExpandY() [2/2]

void ScottPlot.AxisManager.AutoScaleExpandY ( IYAxis  yAxis)
inline

Automatically expand the provided axes vertically to fit the data in all plottables.

◆ AutoScaleX() [1/3]

void ScottPlot.AxisManager.AutoScaleX ( )
inline

Autoscale the bottom horizontal axis limits to fit the data of all plotted objects.

◆ AutoScaleX() [2/3]

void ScottPlot.AxisManager.AutoScaleX ( IEnumerable< IPlottable plottables)
inline

Autoscale the default bottom horizontal axis limits to fit the data of the supplied plottables.

◆ AutoScaleX() [3/3]

void ScottPlot.AxisManager.AutoScaleX ( IXAxis  xAxis)
inline

Autoscale the supplied horizontal axis limits to fit the data of all plotted objects.

◆ AutoScaleY() [1/3]

void ScottPlot.AxisManager.AutoScaleY ( )
inline

Autoscale the left vertical axis limits to fit the data of all plotted objects.

◆ AutoScaleY() [2/3]

void ScottPlot.AxisManager.AutoScaleY ( IEnumerable< IPlottable plottables)
inline

Autoscale the default left vertical axis limits to fit the data of the supplied plottables.

◆ AutoScaleY() [3/3]

void ScottPlot.AxisManager.AutoScaleY ( IYAxis  yAxis)
inline

Autoscale the supplied vertical axis limits to fit the data of all plotted objects.

◆ Color() [1/2]

void ScottPlot.AxisManager.Color ( Color  color)
inline

Apply a single color to the label, tick labels, tick marks, and frame of all axes.

◆ Color() [2/2]

void ScottPlot.AxisManager.Color ( IAxis  axis,
Color  color 
)
inline

Apply a single color to the label, tick labels, tick marks, and frame of the specified axis.

◆ DateTimeTicksBottom()

DateTimeXAxis ScottPlot.AxisManager.DateTimeTicksBottom ( )
inline

Remove all bottom axes, create a DateTime bottom axis, add it to the plot, and return it.

◆ DefaultContinuousAutoscaleAction()

static void ScottPlot.AxisManager.DefaultContinuousAutoscaleAction ( RenderPack  rp)
inlinestatic

◆ Frame()

void ScottPlot.AxisManager.Frame ( bool  enable)
inline

Set visibility of the frame on every axis.

◆ FrameColor()

void ScottPlot.AxisManager.FrameColor ( Color  color)
inline

Set color of the frame on every axis.

◆ Frameless()

void ScottPlot.AxisManager.Frameless ( bool  showTitle = false)
inline

Disable visibility of all axes and titles so the data area fills the entire figure.

◆ FrameWidth()

void ScottPlot.AxisManager.FrameWidth ( float  width)
inline

Set thickness of the frame on every axis.

◆ GetAxes() [1/2]

IEnumerable< IAxis > ScottPlot.AxisManager.GetAxes ( )

All axes.

◆ GetAxes() [2/2]

IEnumerable< IAxis > ScottPlot.AxisManager.GetAxes ( Edge  edge)

All axes with the given edge.

◆ GetDataLimits() [1/2]

AxisLimits ScottPlot.AxisManager.GetDataLimits ( )
inline

Return the 2D axis limits of data for all plottables using the default axes.

◆ GetDataLimits() [2/2]

AxisLimits ScottPlot.AxisManager.GetDataLimits ( IXAxis  xAxis,
IYAxis  yAxis 
)
inline

Return the 2D axis limits of data for all plottables using the given axes.

◆ GetLimits() [1/3]

AxisLimits ScottPlot.AxisManager.GetLimits ( )
inline

Return the 2D axis limits for the default axes.

◆ GetLimits() [2/3]

AxisLimits ScottPlot.AxisManager.GetLimits ( IAxes  axes)
inline

Return the 2D axis limits for the given X/Y axis pair.

◆ GetLimits() [3/3]

AxisLimits ScottPlot.AxisManager.GetLimits ( IXAxis  xAxis,
IYAxis  yAxis 
)
inline

Return the 2D axis limits for the given X/Y axis pair.

◆ Hairline()

void ScottPlot.AxisManager.Hairline ( bool  enable)
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.

◆ InvertX()

void ScottPlot.AxisManager.InvertX ( )
inline

Adjust the horizontal axis so values descend from left to right.

◆ InvertY()

void ScottPlot.AxisManager.InvertY ( )
inline

Adjust the vertical axis so values descend from bottom to top.

◆ Link() [1/3]

void ScottPlot.AxisManager.Link ( IAxis  thisPlotAxis,
IAxis  otherPlotAxis,
Plot  otherPlot 
)
inline

Add a link to another plot's axis so its limits update when limits of an axis from this plot changes.

◆ Link() [2/3]

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.

◆ Link() [3/3]

void ScottPlot.AxisManager.Link ( Plot  target,
bool  x = true,
bool  y = true 
)
inline

Add a link to the target plot so its axis limits update when this plot's axis limits change.

◆ Margins() [1/3]

void ScottPlot.AxisManager.Margins ( )
inline

Reset plot data margins to their default value.

◆ Margins() [2/3]

void ScottPlot.AxisManager.Margins ( double  horizontal = 0::1,
double  vertical = ::15 
)
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).

◆ Margins() [3/3]

void ScottPlot.AxisManager.Margins ( double  left = ::05,
double  right = ::05,
double  bottom = ::07,
double  top = ::07 
)
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).

◆ MarginsX()

void ScottPlot.AxisManager.MarginsX ( double  horizontal = 0::1)
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).

◆ MarginsY()

void ScottPlot.AxisManager.MarginsY ( double  vertical = 0::15)
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).

◆ NumericTicksBottom()

BottomAxis ScottPlot.AxisManager.NumericTicksBottom ( )
inline

Remove all bottom axes, create a numeric bottom axis, add it to the plot, and return it.

◆ Pan() [1/3]

void ScottPlot.AxisManager.Pan ( CoordinateOffset  distance)
inline

Adjust limits all axes to pan by the given distance in coordinate space.

◆ Pan() [2/3]

void ScottPlot.AxisManager.Pan ( Pixel  mouseDown,
Pixel  mouseUp 
)
inline

Adjust limits all axes to pan the pixel distance between two points.

◆ Pan() [3/3]

void ScottPlot.AxisManager.Pan ( PixelOffset  offset)
inline

Adjust limits all axes to pan given pixel distance.

◆ RectifyX()

void ScottPlot.AxisManager.RectifyX ( )
inline

Adjust the horizontal axis so values ascend from left to right.

◆ RectifyY()

void ScottPlot.AxisManager.RectifyY ( )
inline

Adjust the vertical axis so values ascend from bottom to top.

◆ Remove() [1/3]

void ScottPlot.AxisManager.Remove ( Edge  edge)
inline

Remove all axes that lie on the given edge.

◆ Remove() [2/3]

void ScottPlot.AxisManager.Remove ( IAxis  axis)
inline

Remove the given axis from the plot.

◆ Remove() [3/3]

void ScottPlot.AxisManager.Remove ( IPanel  panel)
inline

Remove the given Panel.

◆ SetLimits() [1/7]

void ScottPlot.AxisManager.SetLimits ( AxisLimits  limits)
inline

◆ SetLimits() [2/7]

void ScottPlot.AxisManager.SetLimits ( AxisLimits  limits,
IXAxis  xAxis,
IYAxis  yAxis 
)
inline

◆ SetLimits() [3/7]

void ScottPlot.AxisManager.SetLimits ( CoordinateRange  xRange,
CoordinateRange  yRange 
)
inline

◆ SetLimits() [4/7]

void ScottPlot.AxisManager.SetLimits ( CoordinateRect  rect)
inline

◆ SetLimits() [5/7]

void ScottPlot.AxisManager.SetLimits ( double  left,
double  right,
double  bottom,
double  top 
)
inline

◆ SetLimits() [6/7]

void ScottPlot.AxisManager.SetLimits ( double  left,
double  right,
double  bottom,
double  top,
IXAxis  xAxis,
IYAxis  yAxis 
)
inline

◆ SetLimits() [7/7]

void ScottPlot.AxisManager.SetLimits ( double?  left = null,
double?  right = null,
double?  bottom = null,
double?  top = null 
)
inline

◆ SetLimitsX() [1/5]

void ScottPlot.AxisManager.SetLimitsX ( AxisLimits  limits)
inline

◆ SetLimitsX() [2/5]

void ScottPlot.AxisManager.SetLimitsX ( AxisLimits  limits,
IXAxis  xAxis 
)
inline

◆ SetLimitsX() [3/5]

void ScottPlot.AxisManager.SetLimitsX ( CoordinateRect  limits)
inline

◆ SetLimitsX() [4/5]

void ScottPlot.AxisManager.SetLimitsX ( double  left,
double  right 
)
inline

◆ SetLimitsX() [5/5]

void ScottPlot.AxisManager.SetLimitsX ( double  left,
double  right,
IXAxis  xAxis 
)
inline

◆ SetLimitsY() [1/5]

void ScottPlot.AxisManager.SetLimitsY ( AxisLimits  limits)
inline

◆ SetLimitsY() [2/5]

void ScottPlot.AxisManager.SetLimitsY ( AxisLimits  limits,
IYAxis  yAxis 
)
inline

◆ SetLimitsY() [3/5]

void ScottPlot.AxisManager.SetLimitsY ( CoordinateRect  limits)
inline

◆ SetLimitsY() [4/5]

void ScottPlot.AxisManager.SetLimitsY ( double  bottom,
double  top 
)
inline

◆ SetLimitsY() [5/5]

void ScottPlot.AxisManager.SetLimitsY ( double  bottom,
double  top,
IYAxis  yAxis 
)
inline

◆ SetupMultiplierNotation()

Plottables.TickModifierLabel ScottPlot.AxisManager.SetupMultiplierNotation ( IAxis  axis)
inline

◆ SquareUnits() [1/2]

void ScottPlot.AxisManager.SquareUnits ( )
inline

Force pixels to have a 1:1 scale ratio. This allows circles to always appear as circles and not stretched ellipses.

◆ SquareUnits() [2/2]

void ScottPlot.AxisManager.SquareUnits ( bool  enable)
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.

◆ TightMargins()

void ScottPlot.AxisManager.TightMargins ( )
inline

Auto-scale to tightly fit the data so there is no spacing between data points and the edge of the data area.

◆ Unlink() [1/3]

void ScottPlot.AxisManager.Unlink ( IAxis  axis)
inline

Remove all linked axes rules involving the given axis.

◆ Unlink() [2/3]

void ScottPlot.AxisManager.Unlink ( IPlotControl  target)

Remove all linked axes rules involving the target plot control.

◆ Unlink() [3/3]

void ScottPlot.AxisManager.Unlink ( Plot  target)
inline

Remove all linked axes rules involving the target plot.

◆ UnlinkAll()

void ScottPlot.AxisManager.UnlinkAll ( )

Remove all linked axes rules.

◆ Zoom() [1/3]

void ScottPlot.AxisManager.Zoom ( double  fracX = 1::0,
double  fracY = 1::0 
)
inline

Modify limits of all axes to apply the given zoom. Fractional values >1 zoom in and <1 zoom out.

◆ Zoom() [2/3]

void ScottPlot.AxisManager.Zoom ( Pixel  px,
double  fracX,
double  fracY 
)
inline

Zoom into (frac >1) or out of (frac <1) the given point.

◆ Zoom() [3/3]

void ScottPlot.AxisManager.Zoom ( Pixel  px1,
Pixel  px2 
)
inline

Modify zoom for all axes as if the mouse were right-clicked and dragged.

◆ ZoomIn()

void ScottPlot.AxisManager.ZoomIn ( double  fracX = 1::0,
double  fracY = 1::0 
)
inline

Modify limits of all axes to apply the given zoom. Fractional values >1 zoom in and <1 zoom out.

◆ ZoomOut()

void ScottPlot.AxisManager.ZoomOut ( double  x = 1::0,
double  y = 1::0 
)
inline

Zoom out so the new view is the given fraction of the original view.

◆ ZoomOutX()

void ScottPlot.AxisManager.ZoomOutX ( double  x = 1::0)
inline

Zoom out so the new view is the given fraction of the original view.

◆ ZoomOutY()

void ScottPlot.AxisManager.ZoomOutY ( double  y = 1::0)
inline

Zoom out so the new view is the given fraction of the original view.

Property Documentation

◆ AllGrids

List<IGrid> ScottPlot.AxisManager.AllGrids
get

Return the DefaultGrid and all CustomGrids

◆ AutoScaler

IAutoScaler ScottPlot.AxisManager.AutoScaler = new AutoScalers.FractionalAutoScaler(.1, .15)
getset

Logic that determines padding around the data area when AutoScale() is called.

◆ Bottom

IXAxis ScottPlot.AxisManager.Bottom
get

The primary horizontal axis below the plot.

◆ ContinuousAutoscaleAction

Action<RenderPack> ScottPlot.AxisManager.ContinuousAutoscaleAction = DefaultContinuousAutoscaleAction
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.

◆ ContinuouslyAutoscale

bool ScottPlot.AxisManager.ContinuouslyAutoscale = false
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.

◆ CustomGrids

List<IGrid> ScottPlot.AxisManager.CustomGrids = []
get

List of custom grids. If in use, it is likely the default grid visibility should be disabled.

◆ DefaultGrid

DefaultGrid ScottPlot.AxisManager.DefaultGrid
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.

◆ Left

IYAxis ScottPlot.AxisManager.Left
get

The primary vertical axis to the left of the plot.

◆ LimitsHaveBeenSet

bool ScottPlot.AxisManager.LimitsHaveBeenSet
get

Indicates whether the axis limits have been set (manually or by autoscale)

◆ Right

IYAxis ScottPlot.AxisManager.Right
get

The primary vertical axis to the right of the plot.

◆ Rules

List<IAxisRule> ScottPlot.AxisManager.Rules = []
get

Rules that are applied before each render.

◆ Title

Panels.TitlePanel ScottPlot.AxisManager.Title = new()
get

A special panel.

◆ Top

IXAxis ScottPlot.AxisManager.Top
get

The primary horizontal axis above the plot.


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