KPLOT_DRAW(3) Library Functions Manual KPLOT_DRAW(3)

NAME

kplot_drawplot data on Cairo context

LIBRARY

library “libkplot”

SYNOPSIS

#include <cairo.h>
#include <kplot.h>
void
kplot_draw(const struct kplot *p, double, w, double, h, cairo_t *cr);

DESCRIPTION

The kplot_draw function draws all valid points of all data sources onto a Cairo context cr of height h and width w. It performs all the necessary range and domain checks to fit all data sources into the image. (If no points are specified, the domain and range are zero.) The image is laid out as described in the Drawing Model section of kplot(3).

SEE ALSO

kplot(3), kplot_alloc(3)
February 11, 2015 OpenBSD 5.8