commit ed27ae4dcf7029d20ff0fd507a8a3460249990be
parent 4f191e74da22f0c98ff91fa2bdd890ca858440ef
Author: aabacchus <ben@bvnf.space>
Date: Sun, 3 Oct 2021 01:04:06 +0100
kplot: allow plotting first two columns even if more than two cols
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/kplot.c b/kplot.c
@@ -92,9 +92,7 @@ main(int argc, char **argv) {
return 1;
}
if (c->cols != 2) {
- fprintf(stderr, "%d columns - what should be plotted?\n", c->cols);
- csv_destroy(c);
- return 1;
+ fprintf(stderr, "warning: %d columns in file but only using first two\n", c->cols);
}
if (c->rows < 1) {
fprintf(stderr, "no rows found\n");