plotd.primitives

Undocumented in source.

Members

Aliases

LineId
alias LineId = int
Undocumented in source.

Classes

Axis
class Axis
Undocumented in source.
Color
class Color

Color class using rgba representation internally

LineState
class LineState
Undocumented in source.
Lines
class Lines
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

adjustedBounds
Bounds adjustedBounds(Bounds bounds, Point point)

Returns adjust bounds based on given bounds to include point

convertCoordinates
Point convertCoordinates(Point point, Bounds orig_bounds, Bounds new_bounds)
Undocumented in source. Be warned that the author may not have intended to support it.
height
double height(Bounds bounds)

Return the height of the given bounds

minimalBounds
Bounds minimalBounds(Point[] points)
Undocumented in source. Be warned that the author may not have intended to support it.
tickLength
double tickLength(Axis axis)

Calculate tick length

validBounds
bool validBounds(Point[] points)

Can we construct valid bounds given these points

width
double width(Bounds bounds)

Return the width of the given bounds

withinBounds
bool withinBounds(Bounds bounds, Point point)

Is the point within the Bounds

Structs

Bounds
struct Bounds

Bounds struct holding the bounds (min_x, max_x, min_y, max_y)

ColorRange
struct ColorRange

Infinite range of colors

Point
struct Point
Undocumented in source.

Meta