Guile Charting

(charting draw)

Overview

 

Usage

draw-axis-label [#:cr = #f] [#:text = #f] [#:text-height = #f] [#:axis-length = #f] [#:vertical? = #f]
[Function]

Draw an axis label.

The label will be drawn such that the current position of cr is the closest corner of the label's bounding box.

draw-background [#:cr = #f]
[Function]

Draw the background.

draw-bar [#:cr = #f] [#:height = #f] [#:scale = #f] [#:bar-width = #f] [#:series = #f] [#:decorator = (quote ())]
[Function]

Draw a single bar.

cr is expected to have been placed at the lower left corner of where the bar should be. decorator is a property list that can be passed to charting draw draw-decorator.

draw-bar-group [#:cr = #f] [#:data = #f] [#:bar-width = #f] [#:scale = #f]
[Function]

Draw a group of bars.

data is a property list suitable for passing to charting draw draw-bar. cr is expected to have been positioned along the x axis in the center of where the bar group should be displayed.

draw-chart-area [#:cr = #f] [#:width = #f] [#:height = #f]
[Function]

Draw the actual box for the chart background.

cr is expected to have been positioned at the origin.

draw-decorator [#:cr = #f] [#:scale = #f] [#:y+-bracket = #f] [#:y--bracket = #f] [#:y-bracket = #f]
[Function]

Draw a decorator.

A decorator is something drawn around a point, such as error bars. This function currently supports drawing error bars in the Y direction, which are specified individually as y+-bracket and y--bracket.

draw-legend [#:cr = #f] [#:expand-right? = #f] [#:expand-down? = #f] [#:text-height = 12] [#:series-list = (quote ())]
[Function]

Draw a legend.

series-list is expected to be a list of series names. The cr is expected to be positioned at one of the corners of the legend; expand-right? and expand-down? control which way the legend will be rendered.

draw-tick-labels [#:cr = #f] [#:tick-labels = #f] [#:tick-size = #f] [#:vertical? = #f] [#:text-height = #f]
[Function]

Draw tick labels on an axis.

tick-labels is an alist of label-position pairs, where position is in the current cairo coordinate system, along one axis.

draw-ticks [#:cr = #f] [#:ticks = #f] [#:tick-size = #f] [#:vertical? = #f]
[Function]

Draw ticks on an axis.

ticks is a list of positions in the current cairo coordinate system.

draw-title [#:cr = #f] [#:text = #f] [#:font-size = #f]
[Function]

Draw a title.

cr is expected to have been positioned at the lower boundary of where the title should be written, in the center.