I have a part of my plot that I want to repeat several times.
To be exact, the part I want to replicate is:
\draw[yscale=2.0,yshift=-3,xscale=0.1,domain=0:10] plot[id=gauss1] function{exp(-(x-5)*(x-5)/2/2/2.0)/sqrt(pi)/2};
\draw[yscale=2.0,yshift=-3,xscale=0.1,domain=5:15] plot[id=gauss2] function{exp(-(x-10)*(x-10)/2/2/2.0)/sqrt(pi)/2};
I want to place this same function in multiple places in my tikz matrix (I want to repeat this two exact statements on multiple places)
What is the best way of doing this? Is there a way to not copy-paste this?
I tried including this with \input{sometexfile} but that does give compile errors.
