From ed74b00a7e221e314b659cc965f1f727b1971e8d Mon Sep 17 00:00:00 2001 From: Guyot Date: Fri, 8 May 2020 18:33:48 +0200 Subject: [PATCH] =?UTF-8?q?Points=20avec=20un=20point=20centr=C3=A9=20et?= =?UTF-8?q?=20ansi258=20pour=20la=20couleur=20dans=20le=20dumb,=20ie=20le?= =?UTF-8?q?=20graphe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Fonctionnel.txt | 4 ++-- weight-cli.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Fonctionnel.txt b/Fonctionnel.txt index c9e2d43..5a5f50a 100644 --- a/Fonctionnel.txt +++ b/Fonctionnel.txt @@ -1,5 +1,5 @@ #set term dumb 50 20 -set term dumb #nofeed +set term dumb ansi 256 #nofeed set title 'Courbe de poids' set timefmt "%Y-%m-%d %H:%M:%S" set xdata time @@ -14,5 +14,5 @@ set xtics nomirror set xrange [*:*] set datafile separator '|' f(x) = 86.41099999999999 -plot 'data.csv' using 3:1 pt '.' title '', f(x) lt 7 title 'bmi' +plot 'data.csv' using 3:1 w dots title '', f(x) lt 7 title 'bmi' #pause -1 'En attente de RETURN' diff --git a/weight-cli.py b/weight-cli.py index 289b861..26aea4f 100644 --- a/weight-cli.py +++ b/weight-cli.py @@ -73,7 +73,7 @@ def save_file_data(): linenum = 0 for row in contents: if row.split(' ',1)[0] == 'plot': - contents.insert(linenum, "plot '"+args.data+"' using 3:1 pt '.' title '', f(x) lt 7 title 'bmi'\n") + contents.insert(linenum, "plot '"+args.data+"' using 3:1 w dots title '', f(x) lt 7 title 'bmi'\n") del(contents[linenum+1]) linenum += 1 f = open("Fonctionnel.txt", "w")