Class
LogScale
ConsoleMonster.Frames
A logarithmic axis shared by every row of a section, with labels placed on the cells they describe.
Inheritance
- object
- LogScale
Constructors
public LogScale(double minimum, double maximum) #Creates an axis.
Parameters
- minimum double
- The smallest value, above zero.
- maximum double
- The largest value.
Methods
public double Fraction(double value) #The position of a value, 0 to 1; values outside the axis clamp to its ends.
Parameters
- value double
- The value.
Returns
double The position.public string Labels(int width, IEnumerable<KeyValuePair<double, string>> ticks) #Axis labels for a bar of the given width; a label that would overlap the previous one is skipped.
Parameters
- width int
- Cells.
- ticks System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<double, string>>
- Values and literal labels, in increasing order.
Returns
string Plain text, at most width cells.