How can I draw something like the one shown in the attachment in LaTeX?


I have heard about pstricks, but I am not familiar with it. If there is any good tutorial about it I will appreciate if you share it with me.


1 Answer 1


I choosed a simple function. Run with xelatex or the sequence latex->dvips->s2pdfor use packageauto-pst-pdfand run withpdflatex --shell-escape`:


  \psline[arrows=-*,linestyle=dashed](\iA,0)(* {\iA} {(2*x-1)/(x+4)+1})}
\multido{\iA=1+1,\iB=5+-1}{5}{\psxTick(\iA){x-\iB h}}


enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .