KDATA_SET(3) Library Functions Manual KDATA_SET(3)

NAME

kdata_setset points in a data set

LIBRARY

library “libkplot”

SYNOPSIS

#include <cairo.h>
#include <kplot.h>
int
kdata_set(struct kdata *data, size_t pos, double x, double y);

DESCRIPTION

The kdata_set function sets the x and y points for absolute (i.e., internal bucket) position pos in a kplot(3) data set data. Once assigned, any sources dependant upon the data sources, e.g., those attached via kdata_mean_attach(3), are updated as well.

RETURN VALUES

kdata_set returns 0 if the position pos is not within the allocated number of pairs, else it returns non-zero.

SEE ALSO

kdata_get(3), kplot(3)
January 31, 2015 OpenBSD 5.6