ggplotd.axes

Undocumented in source.

Members

Aliases

XAxisFunction
alias XAxisFunction = XAxis delegate(XAxis)
Undocumented in source.
YAxisFunction
alias YAxisFunction = YAxis delegate(YAxis)
Undocumented in source.

Functions

adjustTickWidth
Axis adjustTickWidth(Axis axis, size_t approx_no_ticks)

Calculate optimal tick width given an axis and an approximate number of ticks

axisAes
auto axisAes(string type, double minC, double maxC, double lvl, double scaling, Tuple!(double, string)[] ticks)

Aes describing the axis and its tick locations

axisTicks
auto axisTicks(Axis axis)

Returns a range starting at axis.min, ending axis.max and with all the tick locations in between

initialized
bool initialized(Axis axis)

Is the axis properly initialized? Valid range.

scalePrint
string scalePrint(double value, uint scaleMin, uint scaleMax)

Print (axis) value, uses scientific notation for higher decimals

tickLength
double tickLength(Axis axis)

Calculate tick length

tickLength
auto tickLength(double plotSize, size_t deviceSize, double scalingX, double scalingY)

Calculate tick length in plot units

toAxisLabel
string toAxisLabel(double value, double max_value, double tick_width)

Convert a value to an axis label

Structs

Axis
struct Axis

Struct holding details on axis

XAxis
struct XAxis

XAxis

YAxis
struct YAxis

YAxis

Meta