Skip to content
ConsoleMonster
Class

LogScale

ConsoleMonster.Frames

Namespace
ConsoleMonster.Frames
Assembly
ConsoleMonster
Modifiers
sealed

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 required
The smallest value, above zero.
maximum double required
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 required
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 required
Cells.
ticks System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<double, string>> required
Values and literal labels, in increasing order.

Returns

string Plain text, at most width cells.

Properties

public double Minimum { get; } #

The smallest value.

public double Maximum { get; } #

The largest value.