Class Axes
- Namespace
- ScottPlot
- Assembly
- ScottPlot.dll
This object holds an X axis and Y axis and performs 2D coordinate/pixel conversions
public class Axes : IAxes
- Inheritance
-
Axes
- Implements
- Inherited Members
- Extension Methods
Constructors
Axes()
public Axes()
Properties
DataRect
Describes the region in the center of the figure where plottable data will be displayed. This region is set by the renderer immediately before a Plottable's Render() method is called.
public PixelRect DataRect { get; set; }
Property Value
Default
public static Axes Default { get; }
Property Value
XAxis
public IXAxis XAxis { get; set; }
Property Value
YAxis
public IYAxis YAxis { get; set; }
Property Value
Methods
GetCoordinateX(float)
public double GetCoordinateX(float pixel)
Parameters
pixelfloat
Returns
GetCoordinateY(float)
public double GetCoordinateY(float pixel)
Parameters
pixelfloat
Returns
GetCoordinates(Pixel)
public Coordinates GetCoordinates(Pixel pixel)
Parameters
pixelPixel
Returns
GetPixel(Coordinates)
public Pixel GetPixel(Coordinates coordinates)
Parameters
coordinatesCoordinates
Returns
GetPixelLine(CoordinateLine)
public PixelLine GetPixelLine(CoordinateLine line)
Parameters
lineCoordinateLine
Returns
GetPixelRect(CoordinateRect)
public PixelRect GetPixelRect(CoordinateRect rect)
Parameters
rectCoordinateRect
Returns
GetPixelX(double)
public float GetPixelX(double xCoordinate)
Parameters
xCoordinatedouble
Returns
GetPixelY(double)
public float GetPixelY(double yCoordinate)
Parameters
yCoordinatedouble