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