minx = find_xy_value(g, getx, mindouble);
maxx = find_xy_value(g, getx, maxdouble);
miny = find_xy_value(g, gety, mindouble);
+
+ /*
+ * Start graphs at zero, unless we have a value below. Otherwise
+ * it's hard to visually compare the read and write graph, since
+ * the lowest valued one will be the floor of the graph view.
+ */
+ if (miny > 0)
+ miny = 0;
+
maxy = find_xy_value(g, gety, maxdouble);
if (fabs(maxx - minx) < 1e-20 || fabs(maxy - miny) < 1e-20) {
int xdiff = abs(xy->gx - x);
int ydiff = abs(xy->gy - y);
- return xdiff <= 20 && ydiff <= 10;
+ return xdiff <= 10 && ydiff <= 10;
}
const char *graph_find_tooltip(struct graph *g, int x, int y)