1

I've found code to create the Brownian motion graph -

\newcommand{\Emmett}[5]{% points, advance, rand factor, options, end label
\draw[#4] (0,0)
\foreach \x in {1,...,#1}
{   -- ++(#2,rand*#3)
}
node[right] {#5};
}

\begin{tikzpicture}
\draw[help lines] (0,-5) grid (15,5);
\Emmett{750}{.02}{0.2}{red}{first one}
\end{tikzpicture}

I want to label to graph as shown in my picture, but I need to graph to remain the same each time I compile so that my arrows don't get messed up. How would I go about keeping the graph from changing and labeling? Pic

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.