From e16eba9eb0f745f38b4449a4fa6313abfc6f27b4 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 6 Nov 2013 19:34:54 -0800 Subject: [PATCH] Drop the "tick avoidance" code. This didn't always work, (plotted lines could still run into the ticks after zooming), so it just provided inconsistent padding around the edges of the chart. --- acre.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/acre.c b/acre.c index 8c64cad..5e341fd 100644 --- a/acre.c +++ b/acre.c @@ -699,23 +699,6 @@ _compute_axis_ranges (acre_t *acre) } } - /* Next, we want to ensure that the data never collides with the - * ticks. So we expand each axis on its minimum side as needed. */ - cairo_save (cr); - { - double x, y; - - _set_transform_to_data_space (acre); - - x = ACRE_TICK_MAJOR_SIZE + 2.0; - y = ACRE_TICK_MAJOR_SIZE + 2.0; - cairo_device_to_user_distance (cr, &x, &y); - - acre->x_axis.view_min -= x; - acre->y_axis.view_min += y; - } - cairo_restore (cr); - /* Then, increase the axis ranges just enough so that the step * sizes for the ticks will be integers. */ -- 2.43.0