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
initialLimitsAxisLimits
ExpandingAxisLimits(IEnumerable<IPlottable>)
public ExpandingAxisLimits(IEnumerable<IPlottable> plottables)
Parameters
plottablesIEnumerable<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
otherAxisLimits
Returns
Equals(ExpandingAxisLimits?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ExpandingAxisLimits? other)
Parameters
otherExpandingAxisLimitsAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe 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
limitsAxisLimits
Expand(CoordinateRect)
public void Expand(CoordinateRect rect)
Parameters
rectCoordinateRect
Expand(Coordinates)
Expanded limits to include the given coordinates.
public void Expand(Coordinates coordinates)
Parameters
coordinatesCoordinates
Expand(IPlottable)
public void Expand(IPlottable plottable)
Parameters
plottableIPlottable
Expand(IEnumerable<Coordinates3d>)
Expanded limits to include the given coordinates.
public void Expand(IEnumerable<Coordinates3d> coordinates)
Parameters
coordinatesIEnumerable<Coordinates3d>
Expand(IEnumerable<Coordinates>)
Expanded limits to include the given coordinates.
public void Expand(IEnumerable<Coordinates> coordinates)
Parameters
coordinatesIEnumerable<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
limitsAxisLimits
ExpandX(double)
Expanded limits to include the given x.
public void ExpandX(double x)
Parameters
xdouble
ExpandY(AxisLimits)
public void ExpandY(AxisLimits limits)
Parameters
limitsAxisLimits
ExpandY(double)
Expanded limits to include the given y.
public void ExpandY(double y)
Parameters
ydouble
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)