X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=graph.h;h=42f781ff9d5f59b4e6b17f891210576d1fd8638f;hb=3cb6147dd770adf5359146054a0c92c922c6e9db;hp=e7d879d683533ebfea5527ce21b9f2b2dfbfb12f;hpb=8dfd6071e1a4fd3966c0a77dbb7d719c52433b54;p=fio.git diff --git a/graph.h b/graph.h index e7d879d6..42f781ff 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);