From ae1b45efbf8befcd595f4baf02ff55340037e24a Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 28 Jun 2020 21:07:06 -0400 Subject: [PATCH] plot: make legend glyph-transparent #744 --- src/lib/plot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/plot.h b/src/lib/plot.h index 76dfc6b18..803c134fb 100644 --- a/src/lib/plot.h +++ b/src/lib/plot.h @@ -142,7 +142,7 @@ class ncppplot { }else{ ncmetric((maxy - interval * states * (dimy - y - 1)) * 100, 100, buf, 0, 1000, '\0'); } - ncplane_printf_yx(ncp, dimy - y - 1, 0, "%*s", PREFIXCOLUMNS, buf); + ncplane_printf_yx(ncp, dimy - y - 1, PREFIXCOLUMNS - strlen(buf), "%s", buf); } } if(finalx < startx){ // exit on pathologically narrow planes