I've drawn the following in geogebra:
I am trying to export it to latex, and it generates the following code
\documentclass[10pt]{article}
\usepackage{pgf,tikz}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=5.963052189663429cm,y=6.882465522871498cm]
\clip(3.689076390812617,1.8587708166080559) rectangle (5.3660699306871065,3.3117385019191485);
\fill(4.562096541660087,3.141936112320542) -- (3.864932244907646,2.1201049468877806) -- (5.203961300072035,2.1259431133816373) -- cycle;
\draw (4.562096541660087,3.141936112320542)-- (3.864932244907646,2.1201049468877806);
\draw (3.864932244907646,2.1201049468877806)-- (5.203961300072035,2.1259431133816373);
\draw (5.203961300072035,2.1259431133816373)-- (4.562096541660087,3.141936112320542);
\draw (4.6150499230079465,2.8338166788505954) node[anchor=north west] {$\widetilde{\pi}(t+1)$};
\draw [dash pattern=on 2pt off 2pt] (4.387584856780469,2.6190839429739308)-- (4.604490640656735,2.7694537510805857);
\draw (4.387584856780469,2.6190839429739308)-- (4.555579181100361,2.252693547941523);
\draw (4.555309695124377,2.2790859913603105) node[anchor=north west] {$\mu(t+1)$};
\draw (4.367554693204586,2.40710076539653) node[anchor=north west] {$\pi(t+1)$};
\draw (4.3056808857537465,2.6823325295744023) node[anchor=north west] {$\pi(t)$};
\draw [dash pattern=on 2pt off 2pt] (4.604490640656735,2.7694537510805857)-- (4.489052072597337,2.3977871019259576);
\draw (4.4251613415208855,2.7356720187561603) node[anchor=north west] {drift};
\draw (4.570244752095269,2.588455028614508) node[anchor=north west] {rebalance};
\draw (4.222471282630203,2.505245425490965) node[anchor=north west] {consume };
\draw (4.333417420128261,2.5372491190000197) node[anchor=north west] {$\lambda \gamma^*_\pi(t)$};
\begin{scriptsize}
\draw [fill=black] (4.387584856780469,2.6190839429739308) circle (0.5pt);
\draw [fill=black] (4.555579181100361,2.252693547941523) circle (0.5pt);
\draw [fill=black] (4.604490640656735,2.7694537510805857) circle (0.5pt);
\draw [fill=black] (4.489052072597337,2.3977871019259576) circle (0.5pt);
\end{scriptsize}
\end{tikzpicture}
\end{document}
but it generates:
im not really sure what im doing wrong?
\fill
. Try changing that to\draw
.