From 527abee0229d129227d592d6beb7baac913be060 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 10 Jun 2020 14:58:20 +0200 Subject: [PATCH] Do not print "Units" on a graph, if unknown type or settype notype is given. --- 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 433330bac..23563da97 100644 --- a/src/frontend/plotting/grid.c +++ b/src/frontend/plotting/grid.c @@ -520,7 +520,7 @@ lingrid(GRAPH *graph, double lo, double hi, double delta, int type, Axis axis) if ((s = ft_typabbrev(type)) != NULL) (void) strncat(buf, s, sizeof(buf) - strlen(buf) - 1); else - (void) strncat(buf, "Units", sizeof(buf) - strlen(buf) - 1); + (void) strncat(buf, " ", sizeof(buf) - strlen(buf) - 1); if (delta == 0.0) { int i; double step; @@ -783,7 +783,7 @@ loggrid(GRAPH *graph, double lo, double hi, int type, Axis axis) s = ft_typabbrev(type); if (!s) - s = "Units"; + s = " "; strncat(buf, s, sizeof(buf) - strlen(buf) - 1); if (axis == x_axis) {