Lines Matching refs:graph
33 #include "graph.h"
69 struct graph *parent;
77 struct graph {
105 void graph_set_size(struct graph *g, unsigned int xdim, unsigned int ydim)
111 void graph_set_position(struct graph *g, double xoffset, double yoffset)
117 struct graph *graph_new(unsigned int xdim, unsigned int ydim, const char *font)
119 struct graph *g;
131 void graph_set_font(struct graph *g, const char *font)
136 void graph_x_axis_unit_change_notify(struct graph *g, graph_axis_unit_change_callback f)
141 void graph_y_axis_unit_change_notify(struct graph *g, graph_axis_unit_change_callback f)
146 static int count_labels(struct graph *g)
204 static double find_double_data(struct graph *g, double_comparator cmp)
227 static double find_min_data(struct graph *g)
232 static double find_max_data(struct graph *g)
237 static void draw_bars(struct graph *bg, cairo_t *cr, struct graph_label *lb,
270 static void graph_draw_common(struct graph *g, cairo_t *cr, double *x1,
313 static void graph_draw_x_ticks(struct graph *g, cairo_t *cr,
369 static double graph_draw_y_ticks(struct graph *g, cairo_t *cr,
384 * Use highest tickmark as top of graph, not highest value. Otherwise
385 * it's impossible to see what the max value is, if the graph is
436 void bar_graph_draw(struct graph *bg, cairo_t *cr)
502 static double find_xy_value(struct graph *g, xy_value_extractor getvalue, double_comparator cmp)
527 void line_graph_draw(struct graph *g, cairo_t *cr)
547 * it's hard to visually compare the read and write graph, since
548 * the lowest valued one will be the floor of the graph view.
621 void graph_title(struct graph *bg, const char *title)
626 void graph_x_title(struct graph *bg, const char *title)
631 void graph_y_title(struct graph *bg, const char *title)
636 static struct graph_label *graph_find_label(struct graph *bg,
652 graph_label_t graph_add_label(struct graph *bg, const char *label)
713 struct graph *g = i->parent;
788 int graph_add_data(struct graph *bg, graph_label_t label, const double value)
815 int graph_add_xy_data(struct graph *bg, graph_label_t label,
844 static void graph_free_labels(struct graph *g)
856 void graph_clear_values(struct graph *g)
867 void graph_set_color(struct graph *gr, graph_label_t label, double red,
895 void graph_free(struct graph *bg)
903 /* For each line in the line graph, up to per_label_limit segments may
907 void line_graph_set_data_count_limit(struct graph *g, int per_label_limit)
912 void graph_add_extra_space(struct graph *g, double left_percent,
927 void graph_set_base_offset(struct graph *g, unsigned int base_offset)
932 int graph_has_tooltips(struct graph *g)
947 int graph_contains_xy(struct graph *g, int x, int y)
957 const char *graph_find_tooltip(struct graph *g, int ix, int iy)
1030 void graph_set_graph_all_zeroes(struct graph *g, unsigned int set)