kdata_vector_append,
kdata_vector_set — modify
data of a vector data source
#include <cairo.h>
#include <kplot.h>
int
kdata_vector_append(struct kdata
*data, double x, double
y);
int
kdata_vector_set(struct kdata
*data, size_t pos, double
x, double y);
The kdata_vector_append function sets the
x and y values the pairs at
pos, or in the event of
kdata_vector_append, after growing vector data
source allocated with
kdata_vector_alloc(3).
kdata_vector_append returns 0 if the
vector reallocation failed, the data source was not created with
kdata_vector_alloc(3),
or if dependent data sources fail. Otherwise it returns non-zero.