I'm not really familiar with LaTeX (started working with it 2 days ago). Most of that work I'm doing in Overleaf, I only recently moved to graphs, could anyone possibly provide me a simple stair chart that I would be able to put in Overleaf and edit?
Example here: https://i.stack.imgur.com/2DucA.jpg
I found some example here: Tikzpicture: Step function (most minimalistic!)
But I'm having hard time with editing it.
Many thanks to anyone kind enough to help me!
EDIT: so far I have this code:
\usepackage{pst-all}
\begin{document}
\begin{pspicture}(-1,-1)(5,5)
\psaxes{->}(0,0)(-0.5,-0.5)(4.5,4.6)[$x$,0][$y$, 180]
\end{pspicture}
\vspace{1.6in}
and I want to make this out of it:


Now I want to draw in it something like this: http://i.imgur.com/mEzvMUz.png
So basically what I need right now is some hint on how to draw the mentioned line, thank you!
– callmeadr Jan 17 '17 at 12:21\addplotstatement. – Torbjørn T. Jan 17 '17 at 12:30\usepackage{pst-all} \begin{document} \begin{pspicture}(-1,-1)(5,5) \psaxes{->}(0,0)(-0.5,-0.5)(4.5,4.6)[$x$,0][$y$, 180] \end{pspicture} \vspace{1.6in}
And it doesn't allow me to use \addplot in Overleaf for some reason
– callmeadr Jan 17 '17 at 12:42\addplot, which is defined by thepgfplotspackage, only works inside anaxisenvironment, which must be inside atikzpictureenvironment. Why can't you use the code from one of the answers to the question you referred to, and just change the coordinates? – Torbjørn T. Jan 17 '17 at 12:45pstricks, so I cannot help, but if you edit the question there is a greater chance that someone who does know sees it. (In general, if you have some code that does part of what you're after, add it to the question, and describe what more you want to do.) – Torbjørn T. Jan 17 '17 at 13:12