texlive[67374] Master/texmf-dist: proflycee (15jun23)

commits+karl at tug.org commits+karl at tug.org
Thu Jun 15 22:07:19 CEST 2023


Revision: 67374
          http://tug.org/svn/texlive?view=revision&revision=67374
Author:   karl
Date:     2023-06-15 22:07:19 +0200 (Thu, 15 Jun 2023)
Log Message:
-----------
proflycee (15jun23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.pdf
    trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.tex
    trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-exemples-pyluatex.pdf
    trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-exemples-pyluatex.tex
    trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty
    trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-graphiques.tex
    trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-listings.tex
    trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-minted.tex
    trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-piton.tex
    trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-probas.tex
    trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-pythontex.tex
    trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex

Modified: trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.tex	2023-06-15 20:06:45 UTC (rev 67373)
+++ trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.tex	2023-06-15 20:07:19 UTC (rev 67374)
@@ -5,8 +5,8 @@
 % arara: lualatex: {shell: yes, synctex: no, interaction: batchmode} if found('log', '(undefined references|Please rerun|Rerun to get)')
 
 \documentclass[a4paper,french,11pt]{article}
-\def\PLversion{2.6.7}
-\def\PLdate{2 juin 2023}
+\def\PLversion{2.7.0}
+\def\PLdate{15 juin 2023}
 \usepackage{amsfonts}
 \usepackage{ProfLycee}
 \useproflyclib{piton,minted,pythontex}
@@ -137,12 +137,12 @@
 		keywordstyle={\color{violet}},%
 		classoffset=2,%
 		alsoletter={-},%
-		morekeywords={\ResolutionApprochee,\SolutionTVI,\CalculTermeRecurrence,\ToileRecurrence,\SolutionSeuil,\IntegraleApprochee,\GrilleTikz,\AxesTikz,\AxexTikz,\AxeyTikz,\FenetreTikz,\FenetreSimpleTikz,\DeclareFonctionTikz,\CourbeTikz,\OrigineTikz,\SplineTikz,\TangenteTikz,\MiniSchemaSignes,\MiniSchemaSignesTkzTab,\IntegraleApprocheeTikz,\CartoucheCapytale,\PaveTikz,\TetraedreTikz,\CercleTrigo,\AffPoint,\AffVecteur,\TrouveEqCartPlan,\TrouveEqParamDroite,\TrouveEqCartDroite,\TrouveNorme,\TrouveDistancePtPlan,\EquationReduite,\CalculsRegLin,\PointsRegLin,\NuagePointsTikz,\PointMoyenTikz,\BoiteMoustaches,\BoiteMoustachesAxe,\Histogramme,\CalcBinomP,\CalcBinomC,\BinomP,\BinomC,\CalcPoissP,\CalcPoissC,\PoissonP,\PoissonC,\CalcGeomP,\CalcGeomC,\GeomP,\GeomC,\CalcHypergeomP,\CalcHypergeomP,\HypergeomP,\HypergeomC,\CalcNormC,\NormaleC,\CalcExpoC,\ExpoC,\ArbreProbasTikz,\LoiNormaleGraphe,\LoiExpoGraphe,\NbAlea,\VarNbAlea,\TirageAleatoireEntiers,\Arrangement,\Combinaison,\ConversionDecBin,\ConversionBinHex,\ConversionVersDec,\ConversionBaseDix,\ConversionDepuisBaseDix,\PresentationPGCD,\EquationDiophantienne,\ConversionFraction,\SimplificationRacine,\EcritureEnsemble,\EcritureTrinome,\MesurePrincipale,\LigneTrigo,\SudoMaths
+		morekeywords={\ResolutionApprochee,\SolutionTVI,\CalculTermeRecurrence,\ToileRecurrence,\SolutionSeuil,\IntegraleApprochee,\GrilleTikz,\AxesTikz,\AxexTikz,\AxeyTikz,\FenetreTikz,\FenetreSimpleTikz,\DeclareFonctionTikz,\CourbeTikz,\OrigineTikz,\SplineTikz,\TangenteTikz,\MiniSchemaSignes,\MiniSchemaSignesTkzTab,\IntegraleApprocheeTikz,\CartoucheCapytale,\PaveTikz,\TetraedreTikz,\CercleTrigo,\AffPoint,\AffVecteur,\TrouveEqCartPlan,\TrouveEqParamDroite,\TrouveEqCartDroite,\TrouveNorme,\TrouveDistancePtPlan,\EquationReduite,\CalculsRegLin,\PointsRegLin,\NuagePointsTikz,\PointMoyenTikz,\BoiteMoustaches,\BoiteMoustachesAxe,\Histogramme,\CalcBinomP,\CalcBinomC,\BinomP,\BinomC,\CalcPoissP,\CalcPoissC,\PoissonP,\PoissonC,\CalcGeomP,\CalcGeomC,\GeomP,\GeomC,\CalcHypergeomP,\CalcHypergeomP,\HypergeomP,\HypergeomC,\CalcNormC,\NormaleC,\CalcExpoC,\ExpoC,\ArbreProbasTikz,\LoiNormaleGraphe,\LoiExpoGraphe,\NbAlea,\VarNbAlea,\TirageAleatoireEntiers,\Arrangement,\Combinaison,\ConversionDecBin,\ConversionBinHex,\ConversionVersDec,\ConversionBaseDix,\ConversionDepuisBaseDix,\PresentationPGCD,\EquationDiophantienne,\ConversionFraction,\SimplificationRacine,\EcritureEnsemble,\EcritureTrinome,\MesurePrincipale,\LigneTrigo,\SudoMaths,\FonctionRepartTikz
 		},%
 		keywordstyle={\color{green!75!black}},%
 		classoffset=3,%
 		alsoletter={-},%
-		morekeywords={minimum-decimal-digits,scale,nonamssymb,build,Precision,Intervalle,Variable,NomFct,NomSol,va,vb,Stretch,Balayage,Calculatrice,Majuscule,No,UNo,NomSuite,Simple,Exact,Conclusion,Sens,ResultatBrut,Methode,NbSubDiv,AffFormule,Expr,Signe,Variables,Affp,Affs,Epaisseur,Police,ElargirOx,ElargirOy,Labelx,Labely,AffLabel,PosLabelx,PosLabely,EchelleFleche,TypeFleche,PosGrad,HautGrad,AffGrad,AffOrigine,Annee,Trigo,Dfrac,Style,Coeffs,AffPoints,TaillePoints,xl,xr,Code,Racines,Largeur,Hauteur,Cadre,Fct,Nom,PosLabel,DecalLabel,TailleLabel,AffTermes,RemplirbOpacite,CouleurRemplissage,Lignes,Gobble,Alignement,Filigrane,BarreTitre,CouleurNombres,Centre,EspacementVertical,Label,Titre,Profondeur,Angle,Fuite,Sommets,Math,Aff,Plein,Cube,Alpha,Beta,Rayon,Marge,TailleValeurs,TailleAngles,CouleurFond,Decal,MoinsPi,AffAngles,AffTraits,AffValeurs,Equationcos,Equationsin,sin,cos,AffTraitsEq,CouleurSol,OptionCoeffs,SimplifCoeffs,Facteur,OptionCoeffs,Reel,Oppose,Rgras,SimplifCoeffs,VectDirecteur,NomCoeffa,NomCoeffb,NomCoeffr,NomCoeffrd,NomXmin,NomXmax,Ox,Oy,xg,yg,AffNom,Elevation,Moyenne,AffMoyenne,Pointilles,Valeurs,Elargir,Min,Max,DebutOx,FinOx,ListeCouleurs,ElargirX,ElargirY,LabelX,LabelY,GradX,GradY,AffEffectifs,PosEffectifs,Opacite,AffBornes,GrilleV,PoliceAxes,PoliceEffectifs,EpaisseurTraits,Unite,EspaceNiveau,EspaceFeuille,Type,PoliceProbas,InclineProbas,Fleche,StyleTrait,EpaisseurTrait,CouleurAire,CouleurCourbe,AfficheM,AfficheCadre,ValMin,ValMax,NbVal,Sep,Tri,Repetition,Notation,NotationAncien,Formule,AffBase,Details,BaseDep,Zeros,DecalH,DecalV,Noeud,Rect,CouleurRes,DecalRect,Rectangle,CouleurResultat,AfficheConclusion,AfficheDelimiteurs,Lettre,Inconnues,Entier,Cadres,PresPGCD,Mathpunct,Option,Alea,Anegatif,Crochets,Brut,Etapes,Epaisseurg,CouleurCase,CouleurTexte,NbSubCol,NbLig,NbCol,Legendes,PoliceLeg,ListeLegV,ListeLegH,DecalLegende,Couleur,Uno},%
+		morekeywords={minimum-decimal-digits,scale,nonamssymb,build,Precision,Intervalle,Variable,NomFct,NomSol,va,vb,Stretch,Balayage,Calculatrice,Majuscule,No,UNo,NomSuite,Simple,Exact,Conclusion,Sens,ResultatBrut,Methode,NbSubDiv,AffFormule,Expr,Signe,Variables,Affp,Affs,Epaisseur,Police,ElargirOx,ElargirOy,Labelx,Labely,AffLabel,PosLabelx,PosLabely,EchelleFleche,TypeFleche,PosGrad,HautGrad,AffGrad,AffOrigine,Annee,Trigo,Dfrac,Style,Coeffs,AffPoints,TaillePoints,xl,xr,Code,Racines,Largeur,Hauteur,Cadre,Fct,Nom,PosLabel,DecalLabel,TailleLabel,AffTermes,RemplirbOpacite,CouleurRemplissage,Lignes,Gobble,Alignement,Filigrane,BarreTitre,CouleurNombres,Centre,EspacementVertical,Label,Titre,Profondeur,Angle,Fuite,Sommets,Math,Aff,Plein,Cube,Alpha,Beta,Rayon,Marge,TailleValeurs,TailleAngles,CouleurFond,Decal,MoinsPi,AffAngles,AffTraits,AffValeurs,Equationcos,Equationsin,sin,cos,AffTraitsEq,CouleurSol,OptionCoeffs,SimplifCoeffs,Facteur,OptionCoeffs,Reel,Oppose,Rgras,SimplifCoeffs,VectDirecteur,NomCoeffa,NomCoeffb,NomCoeffr,NomCoeffrd,NomXmin,NomXmax,Ox,Oy,xg,yg,AffNom,Elevation,Moyenne,AffMoyenne,Pointilles,Valeurs,Elargir,Min,Max,DebutOx,FinOx,ListeCouleurs,ElargirX,ElargirY,LabelX,LabelY,GradX,GradY,AffEffectifs,PosEffectifs,Opacite,AffBornes,GrilleV,PoliceAxes,PoliceEffectifs,EpaisseurTraits,Unite,EspaceNiveau,EspaceFeuille,Type,PoliceProbas,InclineProbas,Fleche,StyleTrait,EpaisseurTrait,CouleurAire,CouleurCourbe,AfficheM,AfficheCadre,ValMin,ValMax,NbVal,Sep,Tri,Repetition,Notation,NotationAncien,Formule,AffBase,Details,BaseDep,Zeros,DecalH,DecalV,Noeud,Rect,CouleurRes,DecalRect,Rectangle,CouleurResultat,AfficheConclusion,AfficheDelimiteurs,Lettre,Inconnues,Entier,Cadres,PresPGCD,Mathpunct,Option,Alea,Anegatif,Crochets,Brut,Etapes,Epaisseurg,CouleurCase,CouleurTexte,NbSubCol,NbLig,NbCol,Legendes,PoliceLeg,ListeLegV,ListeLegH,DecalLegende,Couleur,Uno,Grille,ExtraGrilleY,PosLegende,Pointilles,Extremite,Frac},%
 		keywordstyle={\color{orange!75!black}}
 		}
 	}
@@ -825,6 +825,9 @@
 %schémas lois continues
 \LoiNormaleGraphe[options]<options tikz>{m}{s}{a}{b}
 \LoiExpoGraphe[options]<options tikz>{l}{a}{b}
+
+%fonction de répartition discrète, dans une environnement tikz
+\FonctionRepartTikz[clés]{probas,borneinf,bornesup / probas,borneinf,bornesup / ...}
 \end{PresCodeTexPL}
 
 \begin{PresCodeTexPL}{listing only}
@@ -1382,7 +1385,9 @@
 Cette commande permet de tracer une grille principale et/ou une grille secondaire :
 
 \begin{itemize}
-	\item les premières \Cle{clés} sont les booléens \Cle{Affp} et \Cle{Affs} qui affichent ou non les grilles ;\hfill~défaut \Cle{true}
+	\item les premières \Cle{clés} sont les booléens \Cle{Affp} et \Cle{Affs} qui affichent ou non les grilles ;
+	
+	\hfill~défaut \Cle{true}
 	\item les options des grilles sont en \TikZ. \hfill~défaut \Cle{thin,lightgray} et \Cle{very thin,lightgray}
 \end{itemize}
 \vspace*{-\baselineskip}\leavevmode
@@ -1514,9 +1519,12 @@
 	\item \cmaj{2.5.6} le booléen \Cle{Trigo} (uniquement pour l'axe $(Ox)$) pour des graduations libres en radians ;
 	
 	\hfill~défaut \Cle{false}
-	\item \cmaj{2.5.6} le booléen \Cle{Dfrac} (uniquement pour l'axe $(Ox)$ en \Cle{Trigo}) pour forcer les fractions en \textit{grand}.
+	\item \cmaj{2.5.6} le booléen \Cle{Dfrac} (uniquement pour l'axe $(Ox)$ en \Cle{Trigo}) pour forcer les fractions en \textit{grand} ;
 	
 	\hfill~défaut \Cle{false}
+	\item \cmaj{2.7.0} le booléen \Cle{Frac} (uniquement pour l'axe $(Oy)$) pour forcer les graduations en fraction (taille normale).
+	
+	\hfill~défaut \Cle{false}
 \end{itemize}
 \vspace*{-\baselineskip}\leavevmode
 \end{cautionblock}
@@ -2745,7 +2753,7 @@
 \end{cautionblock}
 
 \begin{noteblock}
-Du fait du paramétrage des boîtes \ctex{tcolorbox}, il se peut que le rendu soit non conforme si elle doit être insérée dans une autre \ctex{tcolorbox}\ldots{} !
+Du fait du paramétrage des boîtes \ctex{tcolorbox}, il se peut que le rendu soit non conforme si elle doit être insérée dans une autre \ctex{tcolorbox}\ldots{} (normalement corrigé en \cmaj{2.6.9}) !
 \end{noteblock}
 
 \begin{noteblock}
@@ -5384,6 +5392,8 @@
 
 \begin{cautionblock}
 Contrairement aux autres commandes graphiques, qui sont souvent à intégrer dans un environnement \TikZ, la commande \ctex{\textbackslash Histogramme} aura besoin de connaître les dimensions finales du graphique pour fonctionner !
+
+Les dimensions correspondent à celles des rectangles avec les éventuelles modifications horizontales et/ou verticales spécifiées.
 \end{cautionblock}
 
 \subsection{Clés et options}
@@ -5403,7 +5413,9 @@
 	
 	\hfill{}défaut : \Cle{vide}
 	\item \Cle{Largeur} : largeur en cm du graphique créé (entre \Cle{DebutOx} et \Cle{FinOx}) ; \hfill{}défaut : \Cle{10}
-	\item \Cle{Hauteur} : hauteur en cm du graphique créé (par rapport à l'effectif maximal) ; \hfill{}défaut : \Cle{5}
+	\item \Cle{Hauteur} : hauteur en cm du graphique créé (par rapport à l'effectif maximal ou la grille éventuelle) ;
+	
+	\hfill{}défaut : \Cle{5}
 	\item \Cle{ListeCouleurs} : liste des couleurs des rectangles (unique ou sous la forme \ctex{\{CoulA,CoulB,...\}}) ;
 	
 	\hfill{}défaut : \Cle{orange}
@@ -5425,9 +5437,19 @@
 	\item \Cle{EpaisseurTraits} : épaisseur des traits (langage \ctex{tikz}). \hfill{}défaut : \Cle{semithick}
 \end{itemize}
 
+\cmaj{2.6.8} Quelques clés sont spécifiques à la grille (éventuelle) des histogrammes non réguliers (avec ajustement vertical et légende) :
+
+\begin{itemize}
+	\item \Cle{Grille} : création de la grille, sous la forme \Cle{GradX/UniteAire} ; \hfill{}défaut : \Cle{vide}
+	\item \Cle{ExtraGrilleY} : pour rajouter une \textit{ligne à la grille en vertical} ; \hfill{}défaut : \Cle{0}
+	\item \Cle{PosLegende} : pour préciser le \textit{carreau} de la légende éventuelle. \hfill{}défaut : \Cle{vide}
+\end{itemize}
+
 Le second argument, obligatoire et entre \ctex{\{...\}} permet de préciser les données utilisées sous la forme \ctex{BorneInf/BorneSup/Effectif BorneInf/BorneSup/Effectif ...}.
 \end{cautionblock}
 
+\pagebreak
+
 \subsection{Exemple avec des classes régulières}
 
 \begin{tipblock}
@@ -5444,25 +5466,22 @@
 \end{tipblock}
 
 \begin{PresCodePL}{}
-\Histogramme[%
-		ListeCouleurs={white},Opacite=1,%
-		GradX={7,8,...,15},LabelX={données},%
-		GradY={0,25,...,175},LabelY={effectifs},%
+\Histogramme[ListeCouleurs={white},Opacite=1,%
+		GradX={7,8,...,15},LabelX={données},GradY={0,25,...,175},LabelY={effectifs},%
 		PoliceEffectifs=\small\sffamily,PosEffectifs=dessus]%
 	{7/9/130 9/11/175 11/13/182 13/15/95}
 \end{PresCodePL}
 
 \begin{PresCodePL}{}
-\Histogramme[%
-		Largeur=11,Hauteur=8,%
+\Histogramme[Largeur=11,Hauteur=7,%
 		ListeCouleurs={yellow,blue,pink,red},%
-		DebutOx=5,FinOx=17,%
-		GradX={5,6,...,17},%
-		GradY={0,25,...,175},%
+		DebutOx=5,FinOx=17,GradX={5,6,...,17},GradY={0,25,...,175},%
 		AffEffectifs=false]%
 	{7/9/130 9/11/175 11/13/182 13/15/95}
 \end{PresCodePL}
 
+\pagebreak
+
 \subsection{Exemple avec des classes non régulières}
 
 \begin{tipblock}
@@ -5494,6 +5513,32 @@
 	{0/20/15 20/50/34 50/60/8 60/85/10 85/100/13}
 \end{PresCodePL}
 
+\pagebreak
+
+\begin{tipblock}
+Avec la série suivante :
+
+\medskip
+
+\hfill
+\begin{tblr}{hlines,vlines,width=14cm,colspec={Q[l,m]*{6}{X[m,c]}},cell{1}{2-Z}={font=\footnotesize}}
+	Classes & $[900\mathpunct{};1\,200[$ & $[1\,200\mathpunct{};1\,400[$ & $[1\,400\mathpunct{};1\,600[$ & $[1\,600\mathpunct{};1\,800[$ & $[1\,800\mathpunct{};2\,000[$ & $[2\,000\mathpunct{};2\,400]$  \\
+	Effectifs & 30 & 30 & 60 & 40 & 20 & 20 \\
+\end{tblr}
+\hfill~
+\end{tipblock}
+
+\begin{PresCodePL}{}
+%choix des unités 0.85cm par petit carreau avec 17H et 5V
+
+\Histogramme*[%
+		Largeur=13.6,Hauteur=4.25,FinOx=2500,%
+		PosLegende=0/3,Grille=100/10,ExtraGrilleY=1,%
+		ListeCouleurs=lightgray,%
+		AffBornes,PosEffectifs=dessus]
+	{900/1200/30 1200/1400/30 1400/1600/60 1600/1800/40 1800/2000/20 2000/2400/20}
+\end{PresCodePL}
+
 \newpage
 
 \phantom{t}\par\vfill\par
@@ -6180,6 +6225,72 @@
 
 \newpage
 
+\section{Fonction de répartition}\label{fctrepart}
+
+\subsection{Idée}
+
+\begin{tipblock}
+\cmaj{2.7.0} L'idée est de proposer une commande (en accord avec les commandes de repérage, page \pageref{reperagetikz}) pour tracer la représentation graphique d'une fonction de répartition discrète.
+\end{tipblock}
+
+\begin{PresCodeTexPL}{listing only}
+\begin{tikzpicture}[paramètres de la fenêtre]
+	%commandes pour al fenêtre graphique
+	\FonctionRepartTikz[clés]{liste des probas,borneinf,bornesup}
+\end{tikzpicture}
+\end{PresCodeTexPL}
+
+\subsection{Utilisation}
+
+\begin{cautionblock}
+Le premier argument, optionnel et entre \ctex{[...]} propose les clés suivantes :
+
+\begin{itemize}
+	\item la clé \Cle{Couleur} pour la couleur du tracé ; \hfill~défaut \Cle{red}
+	\item la clé \Cle{Epaisseur} pour gérer l'épaisseur des tracés (en \textit{raccourci} \TikZ)  ; \hfill~défaut \Cle{thick}
+	\item le booléen \Cle{Pointilles} pour afficher les pointillés horizontaux  ; \hfill~défaut \Cle{true}
+	\item la clé \Cle{Extremite} parmi \Cle{crochet/point} pour gérer les extrémités des segments.
+	
+	\hfill~défaut \Cle{crochet}
+\end{itemize}
+
+L'argument obligatoire et entre \ctex{\{...\}} permet de spécifier la liste des \texttt{probas-intervalles} :
+
+\begin{itemize}
+	\item avec \ctex{*} pour remplacer $\infty$ ;
+	\item sous la forme \ctex{proba,borneinf,bornesup / proba,borneinf,bornesup / ...}.
+\end{itemize}
+\vspace*{-\baselineskip}\leavevmode
+\end{cautionblock}
+
+\begin{importantblock}
+Le code \textit{remplace} \ctex{*} par les valeurs stockées dans \ctex{\textbackslash xmin} ou \ctex{\textbackslash xmax}, d'où l'intérêt d'utiliser la commande en \textit{partenariat} des commandes de repérage de \ctex{Proflycee}.
+\end{importantblock}
+
+\begin{PresCodePL}{}
+\begin{tikzpicture}[y=4cm,xmin=-2,xmax=10,ymin=0,ymax=1.1, xgrille=1,xgrilles=0.5,ygrille=0.5,ygrilles=0.125]
+	\GrilleTikz                             %grille
+	\AxesTikz                               %axes
+	\AxexTikz{0,2,4,6,8}                    %graduations de (Ox)
+	\AxeyTikz[AffGrad=false]{0,0.25,...,1}  %graduations de (Oy) sans valeurs
+	\AxeyTikz[Frac]{1/3,1/2,2/3,1}          %valeurs des probas, en fraction
+	%les probas étant données en fraction, on protège par des {...}
+	\FonctionRepartTikz{0,*,0 / {1/3},0,2 / {1/2},2,4 / {2/3},4,6 / 1,6,*}
+\end{tikzpicture}
+\end{PresCodePL}
+
+\begin{PresCodePL}{}
+\begin{tikzpicture}[y=4cm,xmin=-1,xmax=13,ymin=0,ymax=1.1, xgrille=1,xgrilles=0.5,ygrille=0.2,ygrilles=0.125]
+	\GrilleTikz[Affs=false]
+	\AxesTikz
+	\AxeyTikz{0,0.25,...,1}
+	\AxexTikz{0,1,...,12}
+	\FonctionRepartTikz[Extremite=point,Couleur=blue,Pointilles=false]%
+		{0,*,2 / {1/36},2,3 / {3/36},3,4 / {6/36},4,5 / {10/36},5,6 / {15/36},6,7 / {21/36},7,8 / {26/36},8,9 / {30/36},9,10 / {33/36},10,11 / {35/36},11,12 / 1,12,*}
+\end{tikzpicture}
+\end{PresCodePL}
+\newpage
+
 \phantom{t}\par\vfill\par
 \begin{PART}
 	\begin{center}
@@ -7333,6 +7444,14 @@
 
 \part{Historique}
 
+{\small \bverb|v 2.7.0|~:~~~~Ajout de la clé \Cle{Frac} pour les axes verticaux (\pageref{reperagetikz})
+
+{\small \bverb|       |~:~~~~Fonction de répartition discrète (\pageref{fctrepart})
+
+{\small \bverb|v 2.6.9|~:~~~~Amélioration de le présentation de code \textsf{Piton} (page \pageref{pythonpiton})
+
+{\small \bverb|v 2.6.8|~:~~~~Ajout d'une grille pour les histogrammes non réguliers (page \pageref{histo})
+
 {\small \bverb|v 2.6.7|~:~~~~Histogramme à classes régulières ou non (page \pageref{histo}) + Correction de bugs mineurs
 
 {\small \bverb|v 2.6.6|~:~~~~Style \textsf{mainlevee} en \TikZ{} désormais dans le package \textsf{tikz2d-fr}

Modified: trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-exemples-pyluatex.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-exemples-pyluatex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-exemples-pyluatex.tex	2023-06-15 20:06:45 UTC (rev 67373)
+++ trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-exemples-pyluatex.tex	2023-06-15 20:07:19 UTC (rev 67374)
@@ -2,7 +2,7 @@
 % !TeX TXS-program:compile = txs:///lualatex/[--shell-escape]
 
 \documentclass[french,a4paper,10pt]{article}
-\def\PLver{2.6.0}
+\def\PLver{2.6.9}
 \usepackage[margin=1.5cm]{geometry}
 \usepackage{ProfLycee}
 \useproflyclib{piton}

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty	2023-06-15 20:06:45 UTC (rev 67373)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty	2023-06-15 20:07:19 UTC (rev 67374)
@@ -3,7 +3,10 @@
 % or later, see http://www.latex-project.org/lppl.txtf
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ProfLycee}[2023/06/02 2.6.7 Aide pour l'utilisation de LaTeX en lycee]
+\ProvidesPackage{ProfLycee}[2023/06/15 2.7.0 Aide pour l'utilisation de LaTeX en lycee]
+% 2.7.0	Ajout de la clé [Frac] pour \AxeyTikz + \FonctionRepartTikz
+% 2.6.9	Correction de bugs et améliorations des boîtes de codes
+% 2.6.8	Ajout d'une grille (manuelle) pour les histogrammes non réguliers
 % 2.6.7	Correction de bugs mineurs + Histogramme (classes régulières ou non)
 % 2.6.6	Externalisation du style Tikz mainlevee (dans tikz2d-fr)
 % 2.6.5	Ajout d'une option[noamssymb] pour éviter les clashs avec fourier (merci PfC) + Corections de bugs

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-graphiques.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-graphiques.tex	2023-06-15 20:06:45 UTC (rev 67373)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-graphiques.tex	2023-06-15 20:07:19 UTC (rev 67374)
@@ -255,7 +255,8 @@
 	HautGrad=4pt,%
 	AffGrad=true,%
 	AffOrigine=true,%
-	Annee=false
+	Annee=false,%
+	Frac=false
 }
 
 \DeclareDocumentCommand\AxeyTikz{ O{} m }{%
@@ -264,26 +265,42 @@
 	\IfSubStr{\axeytickwidth}{/}
 	{\StrCut{\axeytickwidth}{/}{\axeytickwidthA}{\axeytickwidthB}}
 	{\def\axeytickwidthA{\axeytickwidth}\def\axeytickwidthB{\axeytickwidth}}
-	\foreach \y in {#2}{%
-		\draw[line width=\axeywidth] ({\axeytickwidthA},{\y-\axeyOy}) -- ({-\axeytickwidthB},{\y-\axeyOy})%
-		\ifboolKV[PLaxeytkz]{AffGrad}%on affiche les graduations
+	\ifboolKV[PLaxeytkz]{Frac}%
 		{%
-			\ifboolKV[PLaxeytkz]{AffOrigine}%si on demande d'afficher l'origine
-			{node[\axeyposlabel,font=\axeyfont] 
-				{\ifboolKV[PLaxeytkz]{Annee}%
-					{\num[group-digits=none]{\y}}%
-					{\num[text-family-to-math=true,text-series-to-math=true]{\y}}%
-				}
-			}
-			{\xintifboolexpr{\y==\axeyOy}{}{node[\axeyposlabel,font=\axeyfont] {\ifboolKV[PLaxeytkz]{Annee}%
-						{\num[group-digits=none]{\y}}%
-						{\num[text-family-to-math=true,text-series-to-math=true]{\y}}%
-					}
-				}
-			}
-		}
-		{}
-		;}
+			\ifboolKV[PLaxeytkz]{AffGrad}%on affiche les graduations
+				{%
+					\foreach \y in {#2}
+						{\draw[line width=\axeywidth] ({\axeytickwidthA},{\y-\axeyOy}) -- ({-\axeytickwidthB},{\y-\axeyOy}) %
+						\xintifboolexpr{\y==\axeyOy}{}{node[\axeyposlabel,font=\axeyfont] {\ConversionFraction{\y}}} ;}
+				}%
+				{%
+					\foreach \y in {#2}
+						{\draw[line width=\axeywidth] ({\axeytickwidthA},{\y-\axeyOy}) -- ({-\axeytickwidthB},{\y-\axeyOy}) ;}
+				}%
+		}%
+		{%
+			\foreach \y in {#2}{%
+				\draw[line width=\axeywidth] ({\axeytickwidthA},{\y-\axeyOy}) -- ({-\axeytickwidthB},{\y-\axeyOy})%
+				\ifboolKV[PLaxeytkz]{AffGrad}%on affiche les graduations
+					{%
+						\ifboolKV[PLaxeytkz]{AffOrigine}%si on demande d'afficher l'origine
+							{node[\axeyposlabel,font=\axeyfont] 
+								{%
+									\ifboolKV[PLaxeytkz]{Annee}%
+										{\num[group-digits=none]{\y}}%
+										{\num[text-family-to-math=true,text-series-to-math=true]{\y}}%
+								}%
+							}
+							{\xintifboolexpr{\y==\axeyOy}{}{node[\axeyposlabel,font=\axeyfont] {\ifboolKV[PLaxeytkz]{Annee}%
+								{\num[group-digits=none]{\y}}%
+								{\num[text-family-to-math=true,text-series-to-math=true]{\y}}%
+							}
+						}
+						}%
+					}%
+					{}
+				;}
+		}%
 }
 
 %axes

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-listings.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-listings.tex	2023-06-15 20:06:45 UTC (rev 67373)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-listings.tex	2023-06-15 20:07:19 UTC (rev 67374)
@@ -136,7 +136,7 @@
 	listing options={style=PLpython,xleftmargin=16pt,numbers=left},%
 	underlay={%
 		\begin{tcbclipinterior}
-			\filldraw[lightgray!25] (interior.south west) rectangle ([xshift=1.3em]interior.north west) ;
+			\draw[draw=none,fill=lightgray!25] (interior.south west) rectangle ([xshift=1.3em]interior.north west) ;
 		\end{tcbclipinterior}%
 		}
 	}

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-minted.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-minted.tex	2023-06-15 20:06:45 UTC (rev 67373)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-minted.tex	2023-06-15 20:07:19 UTC (rev 67374)
@@ -63,7 +63,7 @@
 	minted options={tabsize=4,fontsize=\footnotesize,autogobble,xleftmargin=16pt,linenos,numbersep=10pt},
 	underlay={%
 		\begin{tcbclipinterior}
-			\filldraw[lightgray!25] (interior.south west) rectangle ([xshift=1.3em]interior.north west) ;
+			\draw[draw=none,fill=lightgray!25] (interior.south west) rectangle ([xshift=1.3em]interior.north west) ;
 		\end{tcbclipinterior}%
 		}
 	}

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-piton.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-piton.tex	2023-06-15 20:06:45 UTC (rev 67373)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-piton.tex	2023-06-15 20:07:19 UTC (rev 67374)
@@ -8,6 +8,7 @@
 % and version 1.3 or later is part of all distributions of LaTeX
 % version 2005/12/01 or later.
 
+%2.6.9	Amalioration de la gestion des style := intégration directe dans la tcbox !
 %2.5.9	Ajout d'une clé pour la couleur des nombres
 %2.5.8	Modification des marges
 %2.5.7	Style alternatif
@@ -74,13 +75,13 @@
 	thonnystyle,%
 	underlay={%
 		\begin{tcbclipinterior}
-			\filldraw[lightgray!25] (interior.south west) rectangle ([xshift=1.3em]interior.north west) ;
+			\draw[draw=none,fill=lightgray!25] (interior.south west) rectangle ([xshift=1.3em]interior.north west) ;
 		\end{tcbclipinterior}%
 		}
 	}
 }
 
-%==Création de la boîte
+%==Création de la boîte (essai v2 ?)
 \ifluatex
 \RequirePackage{piton}
 \NewPitonEnvironment{CodePiton}{ O{} m }%
@@ -100,38 +101,40 @@
 	%------les styles tcbox
 	\IfEq{\CODPITstyle}{Moderne}%style Moderne (défaut)
 		{%
-			\tcbset{stylepiton,colframe=Green,colback=ForestGreen!5,width=\CODPITlargeur,fontupper=\CODPITfonte,fontlower=\CODPITfonte,\CODPITalign,leftupper=0.75em}
+			\tcbset{cadre/.style={}}
+			\tcbset{titre/.style={}}
+			\tcbset{stylebase/.style={stylepiton,colframe=Green,colback=ForestGreen!5,width=\CODPITlargeur,fontupper=\CODPITfonte,fontlower=\CODPITfonte,\CODPITalign,leftupper=0.75em}}
 			\ifboolKV[envpiton]{Filigrane}%si filigrane
-				{\tcbset{watermark text={\faPython},watermark opacity=0.175,watermark zoom=0.50}}%
-				{}%
+				{\tcbset{filigrane/.style={watermark text={\faPython},watermark opacity=0.175,watermark zoom=0.50}}}%
+				{\tcbset{filigrane/.style={}}}%
 		}
 		{}%
 	\IfEq{\CODPITstyle}{Classique}%style Classique
 		{%
 			\ifboolKV[envpiton]{Lignes}%si lignes=true
-				{\tcbset{thonnystylelineos,leftupper=0.75em}}%
-				{\tcbset{thonnystyle,leftupper=0.4em}}%
-			\tcbset{width=\CODPITlargeur,colframe=DarkGray!50!Black,fontupper=\CODPITfonte,fontlower=\CODPITfonte,\CODPITalign}
+				{\tcbset{stylebase/.style={thonnystylelineos,leftupper=0.75em,width=\CODPITlargeur,colframe=DarkGray!50!Black,fontupper=\CODPITfonte,fontlower=\CODPITfonte,\CODPITalign}}}%
+				{\tcbset{stylebase/.style={thonnystyle,leftupper=0.4em,width=\CODPITlargeur,colframe=DarkGray!50!Black,fontupper=\CODPITfonte,fontlower=\CODPITfonte,\CODPITalign}}}%
+			%\tcbset{width=\CODPITlargeur,colframe=DarkGray!50!Black,fontupper=\CODPITfonte,fontlower=\CODPITfonte,\CODPITalign}
 			\ifboolKV[envpiton]{Filigrane}%si filigrane
-				{\tcbset{watermark text={\faPython},watermark opacity=0.25,watermark zoom=0.50}}%
-				{}%
+				{\tcbset{filigrane/.style={watermark text={\faPython},watermark opacity=0.25,watermark zoom=0.50}}}%
+				{\tcbset{filigrane/.style={}}}%
 			\ifboolKV[envpiton]{BarreTitre}%
 				{%
 					\ifboolKV[envpiton]{Cadre}
-						{}
-						{\tcbset{boxrule=0pt,frame hidden}}
-					\tcbset{lefttitle=0.4em,title={\CODPITtitre},fonttitle=\bfseries\footnotesize\sffamily,colbacktitle=DarkGray!50!Black}
+						{\tcbset{cadre/.style={}}}%
+						{\tcbset{cadre/.style={boxrule=0pt,frame hidden}}}%
+					\tcbset{titre/.style={lefttitle=0.4em,title={\CODPITtitre},fonttitle=\bfseries\footnotesize\sffamily,colbacktitle=DarkGray!50!Black}}
 				}%
 				{%
-					\tcbset{notitle}
+					\tcbset{titre/.style={notitle}}
 					\ifboolKV[envpiton]{Cadre}
-						{}
-						{\tcbset{boxrule=0pt,frame hidden}}
+						{\tcbset{cadre/.style={}}}
+						{\tcbset{cadre/.style={boxrule=0pt,frame hidden}}}
 				}
 		}
 		{}%
 	%on crée la boîte
-	\begin{tcolorbox}[#2]
+	\begin{tcolorbox}[stylebase,filigrane,cadre,titre]
 }%
 {%
 	\end{tcolorbox}%
@@ -185,9 +188,15 @@
 	\PitonOptions{#1}
 	\PyLTVerbatimEnv
 	\ifboolKV[consolepyluatex]{Logo}
-		{\tcbset{consolepyluatexlogo,width=\ConsPyluaLarg,\ConsPyluaAlign,#3}}
-		{\tcbset{consolepyluatex,width=\ConsPyluaLarg,\ConsPyluaAlign,#3}}
-	\begin{tcolorbox}
+		{%
+			\begin{tcolorbox}[consolepyluatexlogo,width=\ConsPyluaLarg,\ConsPyluaAlign,#3]
+		}%
+		{%
+			\begin{tcolorbox}[consolepyluatex,width=\ConsPyluaLarg,\ConsPyluaAlign,#3]
+		}%
+%		{\tcbset{consolepyluatexlogo,width=\ConsPyluaLarg,\ConsPyluaAlign,#3}}
+%		{\tcbset{consolepyluatex,width=\ConsPyluaLarg,\ConsPyluaAlign,#3}}
+	%\begin{tcolorbox}
 		\begin{pythonrepl}
 }
 {

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-probas.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-probas.tex	2023-06-15 20:06:45 UTC (rev 67373)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-probas.tex	2023-06-15 20:07:19 UTC (rev 67374)
@@ -745,4 +745,75 @@
 		{\num{\xinteval{\CalculCnp{#3}{#4}}}}%formaté
 }
 
+%%------Fonction de répartition
+\NewDocumentCommand\CrochetFctRepart{ m m }{
+	\draw[red,\FctRepartThickness] ({#1 + 0.1}, {#2 + 0.025}) -- (#1,#2 + 0.025) -- (#1,#2 - 0.025) -- ({#1 + 0.1}, {#2 - 0.025});
+}
+
+\defKV[fctrepart]{%
+	Couleur=\def\FctRepartColor{#1},%
+	Epaisseur=\def\FctRepartThickness{#1},%
+	Extremite=\def\FctRepartExtremite{#1}
+}
+
+\setKVdefault[fctrepart]{%
+	Couleur=red,%
+	Epaisseur=thick,%
+	Pointilles=true,%
+	Extremite=crochet
+}
+
+\NewDocumentCommand\FonctionRepartTikz{ O{} m }{%
+	\restoreKV[fctrepart]%
+	\setKV[fctrepart]{#1}%
+	\setsepchar[.]{/.,}%
+	\readlist*\ListeFonctRepart{#2}%
+	\def\NbPortions{\ListeFonctRepartlen}
+	\foreach \i in {1,2,...,\ListeFonctRepartlen}
+		{%
+			\IfStrEq{\ListeFonctRepart[\i,2]}{*}%
+				{%
+					\def\valxdeb{\xmin}%
+				}%
+				{%
+					\itemtomacro\ListeFonctRepart[\i,2]\valxdeb%
+					\IfStrEq{\FctRepartExtremite}{crochet}%
+						{
+							\CrochetFctRepart{\ListeFonctRepart[\i,2]}{\ListeFonctRepart[\i,1]}%
+						}{}%
+					\IfStrEq{\FctRepartExtremite}{point}%
+						{
+							\filldraw[\FctRepartColor] ({\valxdeb},{\ListeFonctRepart[\i,1]}) circle[radius=1.5pt] ;%
+						}{}%
+				}%
+			\IfStrEq{\ListeFonctRepart[\i,3]}{*}%
+				{%
+					\def\valxfin{\xmax}%
+				}%
+				{%
+					\itemtomacro\ListeFonctRepart[\i,3]\valxfin%
+					\IfStrEq{\FctRepartExtremite}{crochet}%
+						{
+							\CrochetFctRepart{\ListeFonctRepart[\i,3]}{\ListeFonctRepart[\i,1]}%
+						}{}%
+					\IfStrEq{\FctRepartExtremite}{point}%
+						{
+							\draw[\FctRepartColor,fill=white] ({\valxfin},{\ListeFonctRepart[\i,1]}) circle[radius=1.5pt] ;%
+						}{}%
+				}%
+			\ifboolKV[fctrepart]{Pointilles}%
+				{%
+					\xintifboolexpr{\valxdeb * \valxfin > 0 'and' \valxdeb > 0}%
+						{%
+							\draw[semithick,dashed] (0,{\ListeFonctRepart[\i,1]})--({\valxdeb},{\ListeFonctRepart[\i,1]}) ;%
+						}{}%
+					\xintifboolexpr{\valxdeb * \valxfin > 0 'and' \valxdeb < 0}%
+						{%
+							\draw[semithick,dashed] (0,{\ListeFonctRepart[\i,1]})--({\valxfin},{\ListeFonctRepart[\i,1]}) ;%
+						}{}%
+				}{}%
+			\draw[\FctRepartThickness,\FctRepartColor] ({\valxdeb},{\ListeFonctRepart[\i,1]})--({\valxfin},{\ListeFonctRepart[\i,1]}) ;%
+		}%
+}
+
 \endinput
\ No newline at end of file

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-pythontex.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-pythontex.tex	2023-06-15 20:06:45 UTC (rev 67373)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-pythontex.tex	2023-06-15 20:07:19 UTC (rev 67374)
@@ -151,7 +151,7 @@
 	stylepythontexalt,leftupper=1.35em,
 	underlay={%
 		\begin{tcbclipinterior}
-			\filldraw[lightgray!25] (interior.south west) rectangle ([xshift=1.3em]interior.north west) ;
+			\draw[draw=none,fill=lightgray!25] (interior.south west) rectangle ([xshift=1.3em]interior.north west) ;
 		\end{tcbclipinterior}%
 		}
 	}

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex	2023-06-15 20:06:45 UTC (rev 67373)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex	2023-06-15 20:07:19 UTC (rev 67374)
@@ -8,6 +8,7 @@
 % and version 1.3 or later is part of all distributions of LaTeX
 % version 2005/12/01 or later.
 
+%2.6.8	Grille histogrammes non réguliers
 %2.6.7	Histogrammes
 
 %%------RegressionLinéaire
@@ -214,7 +215,10 @@
 	Opacite=\def\HistoOpac{#1},%
 	DebutOx=\def\HistoDebX{#1},%
 	FinOx=\def\HistoFinX{#1},%
-	EpaisseurTraits=\def\HistoEptraits{#1}
+	EpaisseurTraits=\def\HistoEptraits{#1},%
+	Grille=\def\HistoGrille{#1},%
+	ExtraGrilleY=\def\HistoExtraGridY{#1},%
+	PosLegende=\def\HistoPosLeg{#1}
 }
 
 \setKVdefault[histostats]{%
@@ -237,7 +241,10 @@
 	GrilleV=true,%
 	DebutOx={},%
 	FinOx={},%
-	EpaisseurTraits=semithick
+	EpaisseurTraits=semithick,%
+	Grille={},%
+	ExtraGrilleY=0,%
+	PosLegende={}
 }
 
 \NewDocumentCommand\Histogramme{ s O{} m }{%
@@ -255,16 +262,48 @@
 	\IfBooleanTF{#1}%étoilé := classe d'amplitudes différentes
 		{%
 			
-			\xdef\ListeHauteurs{\fpeval{(\LISTDONNEES[1,3])/(\LISTDONNEES[1,2]-\LISTDONNEES[1,1])}}
+			\xdef\ListeHauteurs{\xintfloateval{(\LISTDONNEES[1,3])/(\LISTDONNEES[1,2]-\LISTDONNEES[1,1])}}
 			\foreach \i in {2,...,\LISTDONNEESlen}
 				{%
-					\xdef\ListeHauteurs{\ListeHauteurs,\fpeval{(\LISTDONNEES[\i,3])/(\LISTDONNEES[\i,2]-\LISTDONNEES[\i,1])}}%
+					\xdef\ListeHauteurs{\ListeHauteurs,\xintfloateval{(\LISTDONNEES[\i,3])/(\LISTDONNEES[\i,2]-\LISTDONNEES[\i,1])}}%
 				}%
-			\xdef\maxhauteurs{\xinteval{round(max(\ListeHauteurs),3)}}%
-			\xdef\HistoUniteY{\xinteval{round(\HistoHauteur/max(\ListeHauteurs),3)}}%
-			\xdef\HistoUniteX{\xinteval{round(\HistoLargeur/(\HistoFinX-\HistoDebX),3)}}%
+			\IfEq{\HistoGrille}{}%on lit les infos de la grille PasX/UniteAire
+				{}%
+				{%
+					\StrCut{\HistoGrille}{/}{\HistoPasX}{\HistoUnAire}%
+					\def\HistoPasY{\xintfloateval{\HistoUnAire/\HistoPasX}}%
+				}%
+			\xdef\maxhauteurs{\xintfloateval{round(max(\ListeHauteurs),3)}}%
+			
+			\IfEq{\HistoGrille}{}%
+				{%
+					\xdef\HistoUniteY{\xintfloateval{round(\HistoHauteur/max(\ListeHauteurs),3)}}%
+				}%
+				{%
+					\xdef\maxhauteurgrille{\xinteval{(floor((\maxhauteurs)/(\HistoPasY))+1+\HistoExtraGridY)*\HistoPasY}}%
+					\xdef\HistoUniteY{\xintfloateval{round((\HistoHauteur)/(\maxhauteurgrille),3)}}%
+				}%
+			\xdef\HistoUniteX{\xintfloateval{round(\HistoLargeur/(\HistoFinX-\HistoDebX),3)}}%
 			%fenêtre graphique
 			\begin{tikzpicture}[x=\HistoUniteX cm,y=\HistoUniteY cm]
+				%Essai de grille
+				\IfEq{\HistoGrille}{}%
+					{}%
+					{%
+						\draw[line width=0.4pt,lightgray,xstep=\HistoPasX,ystep=\HistoPasY] ({\HistoDebX},0) grid ({\HistoFinX},{\xinteval{floor((\maxhauteurs)/(\HistoPasY))+1+\HistoExtraGridY}*\HistoPasY}) ;
+						\IfSubStr{\HistoPosLeg}{/}%
+							{%
+								\StrCut{\HistoPosLeg}{/}{\HistoPosLegX}{\HistoPosLegY}%
+								\draw[\HistoEptraits,fill=lightgray,fill opacity=\HistoOpac] ({\HistoDebX+(\HistoPosLegX)*(\HistoPasX)},{(\HistoPasY)*(\HistoPosLegY)}) rectangle++ ({\HistoPasX},{\HistoPasY}) ; %
+								\draw ({\HistoDebX+(\HistoPosLegX+1)*(\HistoPasX)},{(\HistoPasY)*(\HistoPosLegY+0.5)}) node[right,font=\HistoFonteEff] {\num{\HistoUnAire}} ;%
+							}%
+							{}%
+						%\draw ({\HistoDebX},{0}) node[below left] {\xinteval{floor((\maxhauteurs)/(\HistoPasY))+1}} ;
+						%\draw ({\HistoDebX},{\HistoPasY}) node[left] {\num{\HistoPasY}} ;
+						%\draw ({\HistoDebX},{\maxhauteurs}) node[left] {\num{\maxhauteurs}} ;
+						
+					}%
+				%rectangles
 				\foreach \i in {1,...,\LISTDONNEESlen}
 					{%
 						\xintifboolexpr{\LISTCOULlen == 1}%



More information about the tex-live-commits mailing list.