Table of Contents

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

PixelRect

Default

public static Axes Default { get; }

Property Value

Axes

XAxis

public IXAxis XAxis { get; set; }

Property Value

IXAxis

YAxis

public IYAxis YAxis { get; set; }

Property Value

IYAxis

Methods

GetCoordinateX(float)

public double GetCoordinateX(float pixel)

Parameters

pixel float

Returns

double

GetCoordinateY(float)

public double GetCoordinateY(float pixel)

Parameters

pixel float

Returns

double

GetCoordinates(Pixel)

public Coordinates GetCoordinates(Pixel pixel)

Parameters

pixel Pixel

Returns

Coordinates

GetPixel(Coordinates)

public Pixel GetPixel(Coordinates coordinates)

Parameters

coordinates Coordinates

Returns

Pixel

GetPixelLine(CoordinateLine)

public PixelLine GetPixelLine(CoordinateLine line)

Parameters

line CoordinateLine

Returns

PixelLine

GetPixelRect(CoordinateRect)

public PixelRect GetPixelRect(CoordinateRect rect)

Parameters

rect CoordinateRect

Returns

PixelRect

GetPixelX(double)

public float GetPixelX(double xCoordinate)

Parameters

xCoordinate double

Returns

float

GetPixelY(double)

public float GetPixelY(double yCoordinate)

Parameters

yCoordinate double

Returns

float