From e77e5c22bb7136b35963a58d3a1a8ffb080a7e87 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 26 Jan 2009 03:46:16 +1100 Subject: [PATCH] Remove bogus 0.5 offset when setting up data transform. I think my intuition here had been to provide at least some padding between the frame and data. But we should do that explicitly (and correctly) rather than just throwing in a 0.5 offset. --- acre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acre.c b/acre.c index 5949a96..0dcf804 100644 --- a/acre.c +++ b/acre.c @@ -282,8 +282,8 @@ _set_transform_to_data_space (acre_t *acre) cairo_t *cr = acre->cr; cairo_translate (cr, - acre->chart.x + 0.5, - acre->chart.y + acre->chart.height - 0.5); + acre->chart.x, + acre->chart.y + acre->chart.height); cairo_scale (cr, acre->chart.width / (acre->x_axis.max - acre->x_axis.min), - acre->chart.height /(acre->y_axis.max - acre->y_axis.min)); -- 2.43.0