ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.AutoScalers.FractionalAutoScaler Class Reference
Inheritance diagram for ScottPlot.AutoScalers.FractionalAutoScaler:
ScottPlot.IAutoScaler

Public Member Functions

 FractionalAutoScaler (double horizontal=.1, double vertical=.15)
 Pad the data area with the given fractions of whitespace. A value of 0.1 means 10% padding (5% on each side of the data area).
 
 FractionalAutoScaler (double left, double right, double bottom, double top)
 Pad each side of the data area with the exact fraction of whitespace. 0.05 means 5% whitespace on that side of the data area.
 
void SetMarginsX (double horizontal=.1)
 
void SetMarginsY (double vertical=.15)
 
void AutoScaleAll (IEnumerable< IPlottable > plottables)
 Autoscale every unset axis used by plottables.
 
AxisLimits GetAxisLimits (Plot plot, IXAxis xAxis, IYAxis yAxis)
 Return the recommended axis limits for the plottables that use the given axes.
 

Properties

double LeftFraction [get]
 
double RightFraction [get]
 
double BottomFraction [get]
 
double TopFraction [get]
 
bool InvertedX = false [get, set]
 
bool InvertedY = false [get, set]
 
- Properties inherited from ScottPlot.IAutoScaler

Constructor & Destructor Documentation

◆ FractionalAutoScaler() [1/2]

ScottPlot.AutoScalers.FractionalAutoScaler.FractionalAutoScaler ( double  horizontal = ::1,
double  vertical = ::15 
)
inline

Pad the data area with the given fractions of whitespace. A value of 0.1 means 10% padding (5% on each side of the data area).

◆ FractionalAutoScaler() [2/2]

ScottPlot.AutoScalers.FractionalAutoScaler.FractionalAutoScaler ( double  left,
double  right,
double  bottom,
double  top 
)
inline

Pad each side of the data area with the exact fraction of whitespace. 0.05 means 5% whitespace on that side of the data area.

Member Function Documentation

◆ AutoScaleAll()

void ScottPlot.AutoScalers.FractionalAutoScaler.AutoScaleAll ( IEnumerable< IPlottable plottables)
inline

Autoscale every unset axis used by plottables.

Implements ScottPlot.IAutoScaler.

◆ GetAxisLimits()

AxisLimits ScottPlot.AutoScalers.FractionalAutoScaler.GetAxisLimits ( Plot  plot,
IXAxis  xAxis,
IYAxis  yAxis 
)
inline

Return the recommended axis limits for the plottables that use the given axes.

Implements ScottPlot.IAutoScaler.

◆ SetMarginsX()

void ScottPlot.AutoScalers.FractionalAutoScaler.SetMarginsX ( double  horizontal = ::1)
inline

◆ SetMarginsY()

void ScottPlot.AutoScalers.FractionalAutoScaler.SetMarginsY ( double  vertical = ::15)
inline

Property Documentation

◆ BottomFraction

double ScottPlot.AutoScalers.FractionalAutoScaler.BottomFraction
get

◆ InvertedX

bool ScottPlot.AutoScalers.FractionalAutoScaler.InvertedX = false
getset

Implements ScottPlot.IAutoScaler.

◆ InvertedY

bool ScottPlot.AutoScalers.FractionalAutoScaler.InvertedY = false
getset

Implements ScottPlot.IAutoScaler.

◆ LeftFraction

double ScottPlot.AutoScalers.FractionalAutoScaler.LeftFraction
get

◆ RightFraction

double ScottPlot.AutoScalers.FractionalAutoScaler.RightFraction
get

◆ TopFraction

double ScottPlot.AutoScalers.FractionalAutoScaler.TopFraction
get

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