X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=graph.h;h=078e50ceac83ee881abe61a56073cf56f27bb969;hp=e7d879d683533ebfea5527ce21b9f2b2dfbfb12f;hb=0b14f0a8bc16f949d9ff3eb425fa7a896513fb15;hpb=8dfd6071e1a4fd3966c0a77dbb7d719c52433b54 diff --git a/graph.h b/graph.h index e7d879d6..078e50ce 100644 --- a/graph.h +++ b/graph.h @@ -6,6 +6,8 @@ struct graph_label; typedef struct graph_label * graph_label_t; +#define GRAPH_DEFAULT_FONT "Sans 12" + struct graph *graph_new(unsigned int xdim, unsigned int ydim, const char *font); /* graph_new() Returns a new graph structure of the given dimensions and font */ void graph_set_size(struct graph *g, unsigned int xdim, unsigned int ydim); @@ -21,6 +23,7 @@ void line_graph_set_data_count_limit(struct graph *g, int per_label_limit); * be added to a line graph. Once the limit is reached, the oldest data * is discarded as new data is added */ +void graph_set_font(struct graph *g, const char *font); void graph_title(struct graph *g, const char *title); /* graph_title() sets the main title of the graph to the given string */ void graph_x_title(struct graph *g, const char *title); @@ -90,5 +93,7 @@ extern int graph_contains_xy(struct graph *p, int x, int y); extern void graph_set_base_offset(struct graph *g, unsigned int base_offset); extern void graph_set_graph_all_zeroes(struct graph *g, unsigned int set); +extern void graph_clear_values(struct graph *g); + #endif