Table of Contents

Interface IAxes

Namespace
ScottPlot
Assembly
ScottPlot.dll

This interface describes a pair of 1D axes. It is intended to be stored inside IPlottable objects, defining which axes they use and providing logic for coordinate/pixel conversions.

public interface IAxes
Extension Methods

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.

PixelRect DataRect { get; set; }

Property Value

PixelRect

XAxis

IXAxis XAxis { get; set; }

Property Value

IXAxis

YAxis

IYAxis YAxis { get; set; }

Property Value

IYAxis

Methods

GetCoordinateX(float)

double GetCoordinateX(float pixel)

Parameters

pixel float

Returns

double

GetCoordinateY(float)

double GetCoordinateY(float pixel)

Parameters

pixel float

Returns

double

GetCoordinates(Pixel)

Coordinates GetCoordinates(Pixel pixel)

Parameters

pixel Pixel

Returns

Coordinates

GetPixel(Coordinates)

Pixel GetPixel(Coordinates coordinates)

Parameters

coordinates Coordinates

Returns

Pixel

GetPixelLine(CoordinateLine)

PixelLine GetPixelLine(CoordinateLine rect)

Parameters

rect CoordinateLine

Returns

PixelLine

GetPixelRect(CoordinateRect)

PixelRect GetPixelRect(CoordinateRect rect)

Parameters

rect CoordinateRect

Returns

PixelRect

GetPixelX(double)

float GetPixelX(double xCoordinate)

Parameters

xCoordinate double

Returns

float

GetPixelY(double)

float GetPixelY(double yCoordinate)

Parameters

yCoordinate double

Returns

float