Lines Matching refs:ydim
81 unsigned int xdim, ydim; member
105 void graph_set_size(struct graph *g, unsigned int xdim, unsigned int ydim) in graph_set_size() argument
108 g->ydim = ydim; in graph_set_size()
117 struct graph *graph_new(unsigned int xdim, unsigned int ydim, const char *font) in graph_new() argument
123 graph_set_size(g, xdim, ydim); in graph_new()
247 range = (double) bg->ydim * 0.80; /* FIXME */ in draw_bars()
256 y2 = bg->ydim * 0.90; in draw_bars()
280 *y1 = 0.10 * g->ydim; in graph_draw_common()
281 *y2 = 0.90 * g->ydim; in graph_draw_common()
307 draw_centered_text(cr, g->font, g->xdim / 2, g->ydim / 20, 20.0, g->title); in graph_draw_common()
308 draw_centered_text(cr, g->font, g->xdim / 2, g->ydim * 0.97, 14.0, g->xtitle); in graph_draw_common()
309 draw_vertical_centered_text(cr, g->font, g->xdim * 0.02, g->ydim / 2, 14.0, g->ytitle); in graph_draw_common()
480 draw_centered_text(cr, bg->font, x1 + space_per_label * (i + 0.5), bg->ydim * 0.93, in bar_graph_draw()
952 int last_y = g->yoffset + g->ydim; in graph_contains_xy()