Introduction
Introduction Statistics Contact Development Disclaimer Help
[ref] move title to the bottom - ploot - simple plotting tools
git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65…
Log
Files
Refs
Tags
README
LICENSE
---
commit 6c194ce4e4df4e4020a7b1997c3e1d063cc7c4b1
parent 8f05e8625d7d5a684fba3ab97c911d3b98e1ecdd
Author: Josuah Demangeon <[email protected]>
Date: Wed, 14 Feb 2018 20:33:51 +0100
[ref] move title to the bottom
Diffstat:
M ploot.c | 7 +++++--
D ploot.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_…
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…
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.
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.