I created a diagram whose code I give below. I would like to be able to accumulate diagrams on the same graph with a parameter that changes: in my wish, it is to modify the concentration (currently, it is 0.1 but I would also like to add the diagram with 0.01 and possibly other values ). How can I do ?
\documentclass[border=0.2cm,11pt]{standalone}%conversion en png avec ghostscript
%COMPILé AVEC XeLaTeX
\usepackage[T1]{fontenc}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{lmodern}
\mathcode`\.="013B%virgule décimale en mode math
%\usepackage{tikz}% chargé automatiquement par pgfplots
\usepackage{pgfplots}\pgfplotsset{compat=newest}
\pgfplotsset{/pgf/number format/.cd,1000 sep={~},use comma}
\usepackage{siunitx}% unités et écriture de valeurs
\usepackage[modules={all}]{chemmacros}%le module orbital a été commenté (lignes 3816 à 3824
\usetikzlibrary{spy}
\begin{document}
\def\concentration{0.1}
\def\pKe{14}
\def\pKsII{15.1}
\def\pKsIII{38}
\def\potstandFeIIIFeII{0.77}
\def\potstandFeIIFe{-0.44}
\pgfmathsetmacro{\phPrecipitationII}{\pKe-0.5*\pKsII-0.5*log10(\concentration)}
\pgfmathsetmacro{\phPrecipitationIII}{\pKe-1/3*\pKsIII-1/3*log10(\concentration)}
\pgfmathsetmacro{\potFeIIFe}{\potstandFeIIFe +0.03*log10(\concentration)}
\pgfmathsetmacro{\potFeIIIFeII}{\potstandFeIIIFeII}
\pgfmathsetmacro{\potstandFeOHIIIFeII}{\potstandFeIIIFeII+0.18*\phPrecipitationIII+0.06*log10(\concentration)}
\pgfmathsetmacro{\potstandFeOHIIIFeOHII}{\potstandFeOHIIIFeII-0.18*\phPrecipitationII-0.06*log10(\concentration)+0.06*\phPrecipitationII}
\pgfmathsetmacro{\potFeOHIIhaut}{\potstandFeOHIIIFeOHII-0.06*\phPrecipitationII}
\pgfmathsetmacro{\potstandFeOHIIFe}{\potFeIIFe+0.06*\phPrecipitationII}
\footnotesize
\begin{tikzpicture}
\begin{axis}[% mise en forme du graphique :
xmin=0,xmax=14,
ymin=-1,ymax=2,
xlabel=pH,
ylabel={$E (\unit{\V})$},
ytick distance=0.5,
minor y tick num=4,
minor x tick num=4,
grid style={black!10},
grid=both,% grilles primaire et secondaire
axis line shift=1pt,
xtick align=outside,
ytick align=outside,
tickpos=left,
legend pos=north west,% place de la légende,
axis x line=bottom,
axis y line = left,
samples = 200,
no markers,
]
%frontiere horiz Fe/FeII
\addplot expression[domain=0:\phPrecipitationII, red, solid, very thin]{\potFeIIFe};
%frontiere horiz FeII/FeIII
\addplot expression[domain=0:\phPrecipitationIII, red, solid, very thin]{\potFeIIIFeII};
%frontiere verticale FeII
\addplot [red, very thin]coordinates{(\phPrecipitationII,\potFeIIFe) (\phPrecipitationII,\potFeOHIIhaut)};
%frontiere vericale FeIII
\addplot [red, very thin]coordinates{(\phPrecipitationIII,\potFeIIIFeII) (\phPrecipitationIII,2)};
%frontiere oblique Fe(OH)3 et Fe2+
\addplot expression[domain=\phPrecipitationII:\phPrecipitationIII, red, solid, very thin]{\potstandFeOHIIIFeII-0.18*x-0.06*log10(\concentration)};
%frontiere oblique Fe(OH)3 et Fe(OH)2
\addplot expression[domain=\phPrecipitationII:14, red, solid, very thin]{\potstandFeOHIIIFeOHII-0.06*x};
%frontiere oblique Fe(OH)2 et Fe
\addplot expression[domain=\phPrecipitationII:14, red, solid, very thin]{\potstandFeOHIIFe-0.06*x};
\node at (4,-0.75){\ch{Fe\sld}};
\node at (4,0){\ch{Fe\pch[2]}};
\node at (1,1.2){\ch{Fe\pch[3]}};
\node at (8,0.6){\ch{Fe(OH)3\sld}};
\node[rotate=-12] at (11,-0.6){\ch{Fe(OH)2\sld}};
%\spy on (6.82,3.65) in node at (8.5,3.8);
\end{axis}
\end{tikzpicture}
\end{document}




\potFeOHIIhaut