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

This object represents the rectangular visible area on a 2D coordinate system. It simply stores a CoordinateRect but has axis-related methods to act upon it. More...

Inheritance diagram for ScottPlot.AxisLimits:
IEquatable

Public Member Functions

 AxisLimits (Coordinates coordinates)
 
 AxisLimits (CoordinateRect rect)
 
 AxisLimits (double left, double right, double bottom, double top)
 
 AxisLimits (CoordinateRange xRange, CoordinateRange yRange)
 
 AxisLimits (IEnumerable< IPlottable > plottables)
 
 AxisLimits (IEnumerable< Coordinates > coordinates)
 
 AxisLimits (IEnumerable< Coordinates3d > coordinates)
 
AxisLimits InvertedVertically ()
 
AxisLimits InvertedHorizontally ()
 
AxisLimits ExpandedToInclude (AxisLimits otherLimits)
 
override string ToString ()
 
string ToString (int digits)
 
AxisLimits Expanded (double x, double y)
 Return a new AxisLimits expanded to include the given x and y .
 
AxisLimits Expanded (Coordinates coordinates)
 Return a new AxisLimits expanded to include the given coordinates .
 
AxisLimits Expanded (CoordinateRect rect)
 Return a new AxisLimits expanded to include all corners of the given rect .
 
AxisLimits Expanded (AxisLimits limits)
 Return a new AxisLimits expanded to include the area defined by limits .
 
AxisLimits WithPan (double deltaX, double deltaY)
 
AxisLimits WithZoom (double fracX, double fracY)
 
AxisLimits WithZoom (double fracX, double fracY, double zoomToX, double zoomToY)
 
bool Contains (double x, double y)
 
bool Contains (Coordinates pt)
 
bool Equals (AxisLimits other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static AxisLimits FromPoint (double x, double y)
 
static AxisLimits FromPoint (Coordinates c)
 
static AxisLimits VerticalOnly (double yMin, double yMax)
 
static AxisLimits HorizontalOnly (double xMin, double xMax)
 
static bool operator== (AxisLimits a, AxisLimits b)
 
static bool operator!= (AxisLimits a, AxisLimits b)
 

Properties

double Left [get]
 
double Right [get]
 
double Bottom [get]
 
double Top [get]
 
double HorizontalSpan [get]
 
double VerticalSpan [get]
 
double HorizontalCenter [get]
 
double VerticalCenter [get]
 
Coordinates Center [get]
 
CoordinateRange XRange [get]
 
CoordinateRange YRange [get]
 
CoordinateRange HorizontalRange [get]
 
CoordinateRange VerticalRange [get]
 
CoordinateRect Rect [get]
 
static AxisLimits Default = new(-10, 10, -10, 10) [get]
 
bool IsRealX [get]
 
bool IsRealY [get]
 
bool IsReal [get]
 
bool HasArea [get]
 
static AxisLimits NoLimits [get]
 
static AxisLimits Unset [get]
 

Detailed Description

This object represents the rectangular visible area on a 2D coordinate system. It simply stores a CoordinateRect but has axis-related methods to act upon it.

Constructor & Destructor Documentation

◆ AxisLimits() [1/7]

ScottPlot.AxisLimits.AxisLimits ( Coordinates  coordinates)
inline

◆ AxisLimits() [2/7]

ScottPlot.AxisLimits.AxisLimits ( CoordinateRect  rect)
inline

◆ AxisLimits() [3/7]

ScottPlot.AxisLimits.AxisLimits ( double  left,
double  right,
double  bottom,
double  top 
)
inline

◆ AxisLimits() [4/7]

ScottPlot.AxisLimits.AxisLimits ( CoordinateRange  xRange,
CoordinateRange  yRange 
)
inline

◆ AxisLimits() [5/7]

ScottPlot.AxisLimits.AxisLimits ( IEnumerable< IPlottable plottables)
inline

◆ AxisLimits() [6/7]

ScottPlot.AxisLimits.AxisLimits ( IEnumerable< Coordinates coordinates)
inline

◆ AxisLimits() [7/7]

ScottPlot.AxisLimits.AxisLimits ( IEnumerable< Coordinates3d coordinates)
inline

Member Function Documentation

◆ Contains() [1/2]

bool ScottPlot.AxisLimits.Contains ( Coordinates  pt)
inline

◆ Contains() [2/2]

bool ScottPlot.AxisLimits.Contains ( double  x,
double  y 
)
inline

◆ Equals() [1/2]

bool ScottPlot.AxisLimits.Equals ( AxisLimits  other)
inline

◆ Equals() [2/2]

override bool ScottPlot.AxisLimits.Equals ( object?  obj)
inline

◆ Expanded() [1/4]

AxisLimits ScottPlot.AxisLimits.Expanded ( AxisLimits  limits)
inline

Return a new AxisLimits expanded to include the area defined by limits .

◆ Expanded() [2/4]

AxisLimits ScottPlot.AxisLimits.Expanded ( CoordinateRect  rect)
inline

Return a new AxisLimits expanded to include all corners of the given rect .

◆ Expanded() [3/4]

AxisLimits ScottPlot.AxisLimits.Expanded ( Coordinates  coordinates)
inline

Return a new AxisLimits expanded to include the given coordinates .

◆ Expanded() [4/4]

AxisLimits ScottPlot.AxisLimits.Expanded ( double  x,
double  y 
)
inline

Return a new AxisLimits expanded to include the given x and y .

◆ ExpandedToInclude()

AxisLimits ScottPlot.AxisLimits.ExpandedToInclude ( AxisLimits  otherLimits)
inline

◆ FromPoint() [1/2]

static AxisLimits ScottPlot.AxisLimits.FromPoint ( Coordinates  c)
inlinestatic

◆ FromPoint() [2/2]

static AxisLimits ScottPlot.AxisLimits.FromPoint ( double  x,
double  y 
)
inlinestatic

◆ GetHashCode()

override int ScottPlot.AxisLimits.GetHashCode ( )
inline

◆ HorizontalOnly()

static AxisLimits ScottPlot.AxisLimits.HorizontalOnly ( double  xMin,
double  xMax 
)
static

◆ InvertedHorizontally()

AxisLimits ScottPlot.AxisLimits.InvertedHorizontally ( )

◆ InvertedVertically()

AxisLimits ScottPlot.AxisLimits.InvertedVertically ( )

◆ operator!=()

static bool ScottPlot.AxisLimits.operator!= ( AxisLimits  a,
AxisLimits  b 
)
inlinestatic

◆ operator==()

static bool ScottPlot.AxisLimits.operator== ( AxisLimits  a,
AxisLimits  b 
)
inlinestatic

◆ ToString() [1/2]

override string ScottPlot.AxisLimits.ToString ( )
inline

◆ ToString() [2/2]

string ScottPlot.AxisLimits.ToString ( int  digits)
inline

◆ VerticalOnly()

static AxisLimits ScottPlot.AxisLimits.VerticalOnly ( double  yMin,
double  yMax 
)
static

◆ WithPan()

AxisLimits ScottPlot.AxisLimits.WithPan ( double  deltaX,
double  deltaY 
)
inline

◆ WithZoom() [1/2]

AxisLimits ScottPlot.AxisLimits.WithZoom ( double  fracX,
double  fracY 
)
inline

◆ WithZoom() [2/2]

AxisLimits ScottPlot.AxisLimits.WithZoom ( double  fracX,
double  fracY,
double  zoomToX,
double  zoomToY 
)
inline

Property Documentation

◆ Bottom

double ScottPlot.AxisLimits.Bottom
get

◆ Center

Coordinates ScottPlot.AxisLimits.Center
get

◆ Default

AxisLimits ScottPlot.AxisLimits.Default = new(-10, 10, -10, 10)
staticget

◆ HasArea

bool ScottPlot.AxisLimits.HasArea
get

◆ HorizontalCenter

double ScottPlot.AxisLimits.HorizontalCenter
get

◆ HorizontalRange

CoordinateRange ScottPlot.AxisLimits.HorizontalRange
get

◆ HorizontalSpan

double ScottPlot.AxisLimits.HorizontalSpan
get

◆ IsReal

bool ScottPlot.AxisLimits.IsReal
get

◆ IsRealX

bool ScottPlot.AxisLimits.IsRealX
get

◆ IsRealY

bool ScottPlot.AxisLimits.IsRealY
get

◆ Left

double ScottPlot.AxisLimits.Left
get

◆ NoLimits

AxisLimits ScottPlot.AxisLimits.NoLimits
staticget

◆ Rect

CoordinateRect ScottPlot.AxisLimits.Rect
get

◆ Right

double ScottPlot.AxisLimits.Right
get

◆ Top

double ScottPlot.AxisLimits.Top
get

◆ Unset

AxisLimits ScottPlot.AxisLimits.Unset
staticget

◆ VerticalCenter

double ScottPlot.AxisLimits.VerticalCenter
get

◆ VerticalRange

CoordinateRange ScottPlot.AxisLimits.VerticalRange
get

◆ VerticalSpan

double ScottPlot.AxisLimits.VerticalSpan
get

◆ XRange

CoordinateRange ScottPlot.AxisLimits.XRange
get

◆ YRange

CoordinateRange ScottPlot.AxisLimits.YRange
get

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