itsv.h - ploot - simple plotting tools Err bitreich.org 70 hgit clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot URL:git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot bitreich.org 70 1Log /scm/ploot/log.gph bitreich.org 70 1Files /scm/ploot/files.gph bitreich.org 70 1Refs /scm/ploot/refs.gph bitreich.org 70 1Tags /scm/ploot/tag bitreich.org 70 1README /scm/ploot/file/README.md.gph bitreich.org 70 1LICENSE /scm/ploot/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 itsv.h (557B) Err bitreich.org 70 i--- Err bitreich.org 70 i 1 #ifndef TSV_H Err bitreich.org 70 i 2 #define TSV_H Err bitreich.org 70 i 3 Err bitreich.org 70 i 4 #include Err bitreich.org 70 i 5 #include Err bitreich.org 70 i 6 Err bitreich.org 70 i 7 /* Err bitreich.org 70 i 8 * List of values and timestamps. Both have their dedicated buffer Err bitreich.org 70 i 9 * so that the timestamp buffer can be shared across tsv objects. Err bitreich.org 70 i 10 */ Err bitreich.org 70 i 11 struct tsv { Err bitreich.org 70 i 12 time_t *t; /* array of timestamps */ Err bitreich.org 70 i 13 double *v; /* array of values */ Err bitreich.org 70 i 14 size_t n; /* number of values */ Err bitreich.org 70 i 15 char label[64]; /* for the legend */ Err bitreich.org 70 i 16 }; Err bitreich.org 70 i 17 Err bitreich.org 70 i 18 void tsv_labels(FILE *, struct tsv **, size_t *); Err bitreich.org 70 i 19 void tsv_values(FILE *, struct tsv *, size_t); Err bitreich.org 70 i 20 int tsv_min_max(struct tsv *, int, time_t *, time_t *, double *, double *); Err bitreich.org 70 i 21 Err bitreich.org 70 i 22 #endif Err bitreich.org 70 .