plotd.drawing

Undocumented in source.

Members

Functions

axesContextFromSurface
cairo.Context axesContextFromSurface(cairo.Surface surface, Bounds plotBounds, Bounds marginBounds)

Get axesContext from a surface

clearContext
CONTEXT clearContext(CONTEXT context)
Undocumented in source. Be warned that the author may not have intended to support it.
color
CONTEXT color(CONTEXT context, Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
createPlotSurface
cairo.Surface createPlotSurface(int width, int height)

Create the plot surface with given width and height in pixels

drawAxes
CONTEXT drawAxes(Bounds bounds, CONTEXT context)

Draw axes onto the given context

drawBins
CONTEXT drawBins(CONTEXT context, Bins!T bins)
Undocumented in source. Be warned that the author may not have intended to support it.
drawLine
CONTEXT drawLine(Point from, Point to, CONTEXT context)
Undocumented in source. Be warned that the author may not have intended to support it.
drawPoint
CONTEXT drawPoint(Point point, CONTEXT context)

Draw point onto context

drawRotatedText
CONTEXT drawRotatedText(string text, Point location, double radians, CONTEXT context)

Draw rotated text on plot

drawText
CONTEXT drawText(string text, Point location, CONTEXT context)

Draw text at given location

drawXLabel
CONTEXT drawXLabel(string label, Bounds bounds, CONTEXT context)

Draw xlabel

drawYLabel
CONTEXT drawYLabel(string label, Bounds bounds, CONTEXT context)

Draw ylabel

plotContextFromSurface
cairo.Context plotContextFromSurface(cairo.Surface surface, Bounds plotBounds, Bounds marginBounds)

Get plotContext from a surface

save
void save(cairo.Surface surface, string name)

Save surface to a file

Meta