From 5eb217fecde8aef89d00518bd1c445fcf3df37d7 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 23 Feb 2020 14:11:47 +0100 Subject: [PATCH] add a slight offset between y axis labels and grid --- src/frontend/plotting/grid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/plotting/grid.c b/src/frontend/plotting/grid.c index d8a57e5c8..468b42350 100644 --- a/src/frontend/plotting/grid.c +++ b/src/frontend/plotting/grid.c @@ -674,7 +674,7 @@ drawlingrid(GRAPH *graph, char *units, int spacing, int nsp, double dst, double ((int) strlen(buf) * graph->fontwidth) / 2, (int) (graph->fontheight * 2.5), 0); else - DevDrawText(buf, graph->viewportxoff - + DevDrawText(buf, graph->viewportxoff - 2 - graph->fontwidth * (int) strlen(buf), graph->viewportyoff + i - graph->fontheight / 2, 0); @@ -684,7 +684,7 @@ drawlingrid(GRAPH *graph, char *units, int spacing, int nsp, double dst, double j += 1000; } if (axis == x_axis) - DevDrawText(units, (int) (graph->absolute.width * RELPOSXUNIT + unitshift), graph->fontheight, 0); + DevDrawText(units, (int) (graph->absolute.width * RELPOSXUNIT + unitshift), graph->fontheight, 0); else DevDrawText(units, graph->fontwidth, (int) (graph->absolute.height - 2 * graph->fontheight), 0);