I want a diagram for each question you can use ACt2 or R code or python to draw

I want a diagram for each question you can use ACt2 or R code or python to draw the diagram watch YouTube how you can construct Eh-pH diagram