I was wondering if there is any way to draw such diagrams on LaTeX. Those are cash flows I have a few to draw and need to integrate to my tex document.

enter image description here

  • 1
    TiKZ or pstricks can do that quite easily.
    – Bernard
    Nov 6 '18 at 13:34
  • I haven't worked with pstricks. I did work a little with TiKZ but was something basic. Nov 6 '18 at 14:08
\draw (0,0) -- (5,0);
\foreach \Y [count=\X starting from 0] in {2,-1,-1,1,-2}
{\draw[-latex] (\X,0) node[below left]{\X} (\X,{-0.1*sign(\Y)}) -- (\X,\Y)

enter image description here

  • Thank you ! Appreciated exactly what I wanted. Nov 6 '18 at 14:20

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.