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.


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

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.