KDATA_HIST_INCREMENT(3) Library Functions Manual KDATA_HIST_INCREMENT(3)

NAME

kdata_hist_add kdata_hist_setmodify histogram data values

LIBRARY

library “libkplot”

SYNOPSIS

#include <cairo.h>
#include <kplot.h>
int
kdata_hist_add(struct kdata *d, double x, double y);
int
kdata_hist_set(struct kdata *d, double x, double y);

DESCRIPTION

The kdata_hist_add and kdata_hist_set set or add y to the position mapped from x after checking that x lies in the range provided to kdata_hist_alloc(3).

RETURN VALUES

kdata_hist_add and kdata_hist_set return 0 if x is outside of the histogram range, the source was not created with kdata_hist_alloc(3), or if dependent data sources fail. Otherwise it returns non-zero.

SEE ALSO

kdata_hist_alloc(3), kplot(3)
February 7, 2015 OpenBSD 5.8