8202fe63a19e7feb96a9be0c3aea57eb95ea1092
[fio.git] / graph.h
1 #ifndef GRAPH_H
2 #define GRAPH_H
3
4 struct graph;
5
6 struct graph *graph_new(unsigned int xdim, unsigned int ydim, const char *font);
7 void bar_graph_draw(struct graph *g, cairo_t *cr);
8 void line_graph_draw(struct graph *g, cairo_t *cr);
9 void line_graph_set_data_count_limit(struct graph *g, int per_label_limit);
10 void graph_title(struct graph *g, const char *title);
11 void graph_x_title(struct graph *g, const char *title);
12 void graph_y_title(struct graph *g, const char *title);
13 void graph_add_label(struct graph *g, const char *label);
14 void graph_add_data(struct graph *g, const char *label, const double value);
15 void graph_add_xy_data(struct graph *g, const char *label,
16                 const double x, const double y);
17 void graph_set_color(struct graph *g, const char *label,
18                 double red, double green, double blue);
19 void graph_free(struct graph *bg);
20
21
22 #endif
23