diff options
Diffstat (limited to 'macros/latex/contrib/profcollege/latex/PfCStatistiques.tex')
-rw-r--r-- | macros/latex/contrib/profcollege/latex/PfCStatistiques.tex | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/macros/latex/contrib/profcollege/latex/PfCStatistiques.tex b/macros/latex/contrib/profcollege/latex/PfCStatistiques.tex index 0fc78fb757..b45111daf5 100644 --- a/macros/latex/contrib/profcollege/latex/PfCStatistiques.tex +++ b/macros/latex/contrib/profcollege/latex/PfCStatistiques.tex @@ -514,6 +514,11 @@ ModeleCouleur=5% B[n]=unitey*(0,ypart(p_)); fi; endfor; + if DonneesSup: + maxAxey:=floor(maxy/10)*10+4*PasGrilley; + else: + maxAxey:=maxy; + fi; enddef; vardef tutu(text t)=%points qualitatif n:=0; @@ -531,6 +536,11 @@ ModeleCouleur=5% endfor; maxy:=maxy-Depart; maxx:=n; + if DonneesSup: + maxAxey:=floor(maxy/10)*10+4*PasGrilley; + else: + maxAxey:=maxy; + fi; enddef; } @@ -649,9 +659,9 @@ ModeleCouleur=5% if Grille: drawoptions(withcolor 0.75white); for k=0 step PasGrillex until ((maxx+1)): - trace (k*unitex,0)--(k*unitex,unitey*((floor(maxy/Pasy)+1)*Pasy)); + trace (k*unitex,0)--(k*unitex,unitey*((floor(maxAxey/Pasy)+1)*Pasy)); endfor; - for k=0 step PasGrilley until (floor(maxy/Pasy)+1)*Pasy:%((maxy+2*Pasy)): + for k=0 step PasGrilley until (floor(maxAxey/Pasy)+1)*Pasy:%((maxy+2*Pasy)): trace (0,k*unitey)--(unitex*(maxx+1),k*unitey); endfor; drawoptions(); @@ -701,9 +711,9 @@ ModeleCouleur=5% endfor; fi; drawarrow (0,0)--unitex*(maxx+1,0); - drawarrow (0,0)--unitey*(0,(floor(maxy/Pasy)+1)*Pasy); - label.lrt(btex \useKV[ClesStat]{Donnee} etex,unitex*(maxx+1,0)); - label.urt(btex \useKV[ClesStat]{Effectif} etex,unitey*(0,(floor(maxy/Pasy)+1)*Pasy)); + drawarrow (0,0)--unitey*(0,(floor(maxAxey/Pasy)+1)*Pasy); + label.lrt(TEX("\useKV[ClesStat]{Donnee}"),unitex*(maxx+1,0)); + label.urt(TEX("\useKV[ClesStat]{Effectif}"),unitey*(0,(floor(maxAxey/Pasy)+1)*Pasy)); if Qualitatif: titi(#1); else:tata(#1); fi; \end{mplibcode} \else |