diff --git a/Fonctionnel.txt b/Fonctionnel.txt index 1f60c49..dee68f3 100644 --- a/Fonctionnel.txt +++ b/Fonctionnel.txt @@ -13,5 +13,5 @@ set x2tics format "%Y" set xtics nomirror set xrange [*:*] set datafile separator '|' -plot 'data2.csv' using 3:1 pt '*' title '' +plot 'data2.csv' using 3:1 pt 'X' title '' #pause -1 'En attente de RETURN' diff --git a/locale/fr/LC_MESSAGES/base.po b/locale/fr/LC_MESSAGES/base.po index 5713708..e67f874 100644 --- a/locale/fr/LC_MESSAGES/base.po +++ b/locale/fr/LC_MESSAGES/base.po @@ -47,6 +47,9 @@ msgstr "autre : optionnel" msgid "optional : delete a measure by its number in the list" msgstr "suppression d'une mesure par son numéro dans la liste : optionnel" +msgid "optional : min_date max_date -> 'Y-m-d hh:mm:ss' or '*' for an automatic date." +msgstr "date_min date_max -> 'Y-m-d hh:mm:ss' ou '*' pour une date automatique : optionnel" + msgid "optional : plot graph" msgstr "trace le graphe : optionnel" diff --git a/weight-cli.py b/weight-cli.py index 7811829..7bf2508 100644 --- a/weight-cli.py +++ b/weight-cli.py @@ -51,13 +51,14 @@ Une mesure est caractérisée par : """ def save_file_data(): + """ Enregistrement du nom du fichier de données """ f = open("Fonctionnel.txt", "r") contents = f.readlines() f.close() linenum = 0 for row in contents: if row.split(' ',1)[0] == 'plot': - contents.insert(linenum, "plot '"+args.data+"' using 3:1 pt '*' title ''\n") + contents.insert(linenum, "plot '"+args.data+"' using 3:1 pt 'X' title ''\n") del(contents[linenum+1]) linenum += 1 f = open("Fonctionnel.txt", "w") @@ -266,7 +267,7 @@ parser.add_argument('-v', '--version', # Récupération des arguments args = parser.parse_args() # Lancement des actions -if args.data != -1: +if args.data != 'data2.csv': save_file_data() if args.weight != -1: save_mesure()