| KDATA_SET(3) | Library Functions Manual | KDATA_SET(3) | 
NAME
 kdata_set — set 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.