Je voudrai simplement remplacer sur l'axe y les graduations 1.01 puis 1.02 ... par 1,01 puis 1,02 ... c'est à dire remplacer le point par une virgule.
Si vous avez une autre manière de faire, je suis preneur.
Merci d'avance.
https://www.cjoint.com/data/JFoo1kC1m1A ... .52.34.png
Code : Tout sélectionner
\documentclass[a4paper]{article}
\usepackage[top=15mm,bottom=0mm,inner=10mm,outer=10mm]{geometry}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[x=1cm, y=1cm]
%%%%%%%%%%%% tracé du papier millimètré %%%%%%%%%%%%
\draw[step=1mm, line width=0.1mm, orange] (0,0) grid (10,9);
\draw[step=5mm, line width=0.2mm,orange] (0,0) grid (10,9);
\draw[step=1cm, line width=0.3mm, orange] (0,0) grid (10,9);
%%%%%%%%%%%% FIN - tracé du papier millimètré %%%%%%%%%%%%
%%%%%%%%%%%% tracé des axes %%%%%%%%%%%%
% axe x %
\draw[->, line width = 0.5mm] (0,0) -- (10.5,0);
\draw (11,0) node[below right] {m(g) }; %%%%%%%%%%%%% grandeur axe x m(g) %%%%%%%%
\foreach \x in {0,1,...,10} \draw (\x,-0.2) node [below] {\x};
% axe y %
\draw[->, line width = 0.5mm] (0,0) -- (0,9.5);
\draw (0,10) node[below right] {$\rho$ $(g/cm^3)$ }; %%%%%%%%%%%%% grandeur axe y %%%%%%%%
\foreach \y / \label in
{0/1 , 1/1.01 , 2/1.02 , 3/1.03 , 4/1.04 , 5/1.05 , 6/1.06 , 7/1.07 , 8/1.08 }
\draw (-0.7,\y) node {\label};
%%%%%%%%%%%% fin tracé des axes %%%%%%%%%%%%
%%%%%%%%%%%% graduation des axes %%%%%%%%%%%%
\foreach \x in {0,1,...,10}
\draw [very thick] (\x,-0.1)--(\x,0.1);
\foreach \y in {0,1,...,9}
\draw [very thick] (-0.1,\y)--(0.1,\y);
%%%%%%%%%%%% fin graduation des axes %%%%%%%%%%%%
\end{tikzpicture}
\end{document}