ploot

plot images or real-time plain text from a .csv file
Log | Files | Refs | README

commit 6c194ce4e4df4e4020a7b1997c3e1d063cc7c4b1
parent 8f05e8625d7d5a684fba3ab97c911d3b98e1ecdd
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed, 14 Feb 2018 20:33:51 +0100

[ref] move title to the bottom

Diffstat:
Mploot.c | 7+++++--
Dploot.core | 0
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ploot.c b/ploot.c @@ -4,6 +4,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <time.h> #include "config.h" @@ -158,8 +159,6 @@ plot(double *beg, double *end, int height, char *str, time_t start) int h; putchar('\n'); - if (str != NULL) - title(str, end - beg); max = maxdv(beg, end); for (h = height + height % 2; h > 0; h -= 2) { @@ -169,8 +168,12 @@ plot(double *beg, double *end, int height, char *str, time_t start) vaxis(top, h); line(beg, end, top, bot); } + haxis(beg, end, start); + if (str != NULL) + title(str, end - beg); + putchar('\n'); } diff --git a/ploot.core b/ploot.core Binary files differ.