kdata_hist_add
    kdata_hist_set — modify
    histogram data values
#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);
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).
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.