From cd01e5d314fa4432e14fb267adab9f305fa811f7 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Fri, 13 Oct 2023 00:25:40 +0200 Subject: [PATCH] in digital graphs use gr->magy (ylabmag attribute) to rescale node names on Y axix, as done in analog graphs on Y axis labels --- src/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/draw.c b/src/draw.c index f2089be7..bee64a99 100644 --- a/src/draw.c +++ b/src/draw.c @@ -2686,7 +2686,7 @@ static void draw_graph_variables(int wcnt, int wave_color, int n_nodes, int swee } #endif draw_string(wave_color, NOW, tmpstr, 2, 0, 0, 0, - xt, DW_Y(yt), gr->digtxtsizelab, gr->digtxtsizelab); + xt, DW_Y(yt), gr->digtxtsizelab * gr->magy, gr->digtxtsizelab * gr->magy); #if HAS_CAIRO == 1 if(gr->hilight_wave == wcnt) { xctx->cairo_font =