Class ExpandingAxisLimits
- Namespace
- ScottPlot
- Assembly
- ScottPlot.dll
A stateful analog to AxisLimits deisgned to expand to include given data
public class ExpandingAxisLimits : IEquatable<ExpandingAxisLimits>
- Inheritance
-
ExpandingAxisLimits
- Implements
- Inherited Members
- Extension Methods
Constructors
ExpandingAxisLimits()
Create a new set of expanding axis limits with no leimits set initially
public ExpandingAxisLimits()
ExpandingAxisLimits(AxisLimits)
Create a new set of expanding axis limits starting from the given axis limits
public ExpandingAxisLimits(AxisLimits initialLimits)
Parameters
initialLimits
AxisLimits
ExpandingAxisLimits(IEnumerable<IPlottable>)
public ExpandingAxisLimits(IEnumerable<IPlottable> plottables)
Parameters
plottables
IEnumerable<IPlottable>
Properties
AxisLimits
public AxisLimits AxisLimits { get; }
Property Value
Bottom
public double Bottom { get; set; }
Property Value
HasArea
public bool HasArea { get; }
Property Value
HorizontalSpan
public double HorizontalSpan { get; }
Property Value
IsReal
public bool IsReal { get; }
Property Value
IsRealX
public bool IsRealX { get; }
Property Value
IsRealY
public bool IsRealY { get; }
Property Value
Left
public double Left { get; set; }
Property Value
Right
public double Right { get; set; }
Property Value
Top
public double Top { get; set; }
Property Value
VerticalSpan
public double VerticalSpan { get; }
Property Value
Methods
Equals(AxisLimits)
public bool Equals(AxisLimits other)
Parameters
other
AxisLimits
Returns
Equals(ExpandingAxisLimits?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ExpandingAxisLimits? other)
Parameters
other
ExpandingAxisLimitsAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
other
parameter; otherwise, false.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
- bool
true if the specified object is equal to the current object; otherwise, false.
Expand(AxisLimits)
public void Expand(AxisLimits limits)
Parameters
limits
AxisLimits
Expand(CoordinateRect)
public void Expand(CoordinateRect rect)
Parameters
rect
CoordinateRect
Expand(Coordinates)
Expanded limits to include the given coordinates
.
public void Expand(Coordinates coordinates)
Parameters
coordinates
Coordinates
Expand(IPlottable)
public void Expand(IPlottable plottable)
Parameters
plottable
IPlottable
Expand(IEnumerable<Coordinates3d>)
Expanded limits to include the given coordinates
.
public void Expand(IEnumerable<Coordinates3d> coordinates)
Parameters
coordinates
IEnumerable<Coordinates3d>
Expand(IEnumerable<Coordinates>)
Expanded limits to include the given coordinates
.
public void Expand(IEnumerable<Coordinates> coordinates)
Parameters
coordinates
IEnumerable<Coordinates>
Expand(double, double)
Expanded limits to include the given x
and y
.
public void Expand(double x, double y)
Parameters
ExpandX(AxisLimits)
public void ExpandX(AxisLimits limits)
Parameters
limits
AxisLimits
ExpandX(double)
Expanded limits to include the given x
.
public void ExpandX(double x)
Parameters
x
double
ExpandY(AxisLimits)
public void ExpandY(AxisLimits limits)
Parameters
limits
AxisLimits
ExpandY(double)
Expanded limits to include the given y
.
public void ExpandY(double y)
Parameters
y
double
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
SetX(double, double)
public void SetX(double left, double right)
Parameters
SetY(double, double)
public void SetY(double bottom, double top)
Parameters
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
operator ==(ExpandingAxisLimits, AxisLimits)
public static bool operator ==(ExpandingAxisLimits a, AxisLimits b)
Parameters
Returns
operator ==(ExpandingAxisLimits, ExpandingAxisLimits)
public static bool operator ==(ExpandingAxisLimits a, ExpandingAxisLimits b)
Parameters
Returns
operator !=(ExpandingAxisLimits, AxisLimits)
public static bool operator !=(ExpandingAxisLimits a, AxisLimits b)
Parameters
Returns
operator !=(ExpandingAxisLimits, ExpandingAxisLimits)
public static bool operator !=(ExpandingAxisLimits a, ExpandingAxisLimits b)