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
pixel
float
Returns
GetCoordinateY(float)
public double GetCoordinateY(float pixel)
Parameters
pixel
float
Returns
GetCoordinates(Pixel)
public Coordinates GetCoordinates(Pixel pixel)
Parameters
pixel
Pixel
Returns
GetPixel(Coordinates)
public Pixel GetPixel(Coordinates coordinates)
Parameters
coordinates
Coordinates
Returns
GetPixelLine(CoordinateLine)
public PixelLine GetPixelLine(CoordinateLine line)
Parameters
line
CoordinateLine
Returns
GetPixelRect(CoordinateRect)
public PixelRect GetPixelRect(CoordinateRect rect)
Parameters
rect
CoordinateRect
Returns
GetPixelX(double)
public float GetPixelX(double xCoordinate)
Parameters
xCoordinate
double
Returns
GetPixelY(double)
public float GetPixelY(double yCoordinate)
Parameters
yCoordinate
double