diff --git a/Fonctionnel.txt b/Fonctionnel.txt index 5a5f50a..da597ce 100644 --- a/Fonctionnel.txt +++ b/Fonctionnel.txt @@ -1,5 +1,7 @@ #set term dumb 50 20 +#terminl gnuplot dumb : http://www.bersch.net/gnuplot-doc/complete-list-of-terminals.html#commands-set-terminal-dumb set term dumb ansi 256 #nofeed +set autoscale set title 'Courbe de poids' set timefmt "%Y-%m-%d %H:%M:%S" set xdata time @@ -14,5 +16,5 @@ set xtics nomirror set xrange [*:*] set datafile separator '|' f(x) = 86.41099999999999 -plot 'data.csv' using 3:1 w dots title '', f(x) lt 7 title 'bmi' +plot 'data.csv' using 3:1 w dots title '', f(x) lc 'red' w dots title 'bmi max' #pause -1 'En attente de RETURN' diff --git a/weight-cli.py b/weight-cli.py index 26aea4f..00f7b45 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 w dots title '', f(x) lt 7 title 'bmi'\n") + contents.insert(linenum, "plot '"+args.data+"' using 3:1 w dots title '', f(x) lc 'red' w dots title 'bmi max'\n") del(contents[linenum+1]) linenum += 1 f = open("Fonctionnel.txt", "w")