diff options
Diffstat (limited to 'trace_courbe.py')
-rw-r--r-- | trace_courbe.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/trace_courbe.py b/trace_courbe.py index fccb657..4ccc6eb 100644 --- a/trace_courbe.py +++ b/trace_courbe.py | |||
@@ -24,7 +24,10 @@ def cree_figure(conf,l_jours,l_poids,liste_err): | |||
24 | else: | 24 | else: |
25 | jour_maxi = conf["maxi"]+1 | 25 | jour_maxi = conf["maxi"]+1 |
26 | 26 | ||
27 | jour_maxi = min(jour_maxi,jours_maxi_courbe) | 27 | # On s'assure que c'est bien compris dans les bornes |
28 | #warning("bla"+str(jour_maxi),liste_err) | ||
29 | jour_maxi = max(CONFIG["jours_mini_courbe"],min(jour_maxi,CONFIG["jours_maxi_courbe"])) | ||
30 | #warning("bla"+str(jour_maxi),liste_err) | ||
28 | 31 | ||
29 | if conf["unite"] == "": | 32 | if conf["unite"] == "": |
30 | conf["unite"] = choix_unite(jour_maxi) | 33 | conf["unite"] = choix_unite(jour_maxi) |
@@ -36,7 +39,7 @@ def cree_figure(conf,l_jours,l_poids,liste_err): | |||
36 | 39 | ||
37 | titre = "Courbe de poids OMS" | 40 | titre = "Courbe de poids OMS" |
38 | 41 | ||
39 | # warning("cree_figure : ça va jusque là ",liste_err) | 42 | #warning("cree_figure : ça va jusque là ",liste_err) |
40 | #warning("bli"+str(conf),liste_err) | 43 | #warning("bli"+str(conf),liste_err) |
41 | #warninf("coucou") | 44 | #warninf("coucou") |
42 | 45 | ||