I read some topics on the forum, but still have no idea on how to draw a diagram like this one
I know I could just insert the image, but I think it would be nicer to draw it myself, and I also have to change the variables (I need to change S with T, X with J and J with X)
This is what I managed to achieve so far
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.5}
\begin{document}
\begin{tikzpicture}
\begin{axis}[axis lines=middle, axis equal, title=test, xlabel={Time}, ylabel=.{States}]
\addplot table {
x y
1.7 4.3
0 4.3
1.7 4
2.3 4
2.3 5.2
3.1 5.2
3.1 4.5
3.8 4.5
3.8 3.8
4.7 3.8
4.7 5.5
5.8 5.5
};
\end{axis}
\end{tikzpicture}
\end{document}
I still need the ticks on the "x" axis to be related to the jump points of the function, and to name them "T_0, T_1, ... T_n" (note that the jump length is random, and it has to be). Moreover, does anyone know how to remove the right dot from the function, leaving only the left one?
P.S: Of course I will add reference on the bibliography for using this image
A big hug to everybody!