[pstricks] Sketching the graph of the tangent function

Richard Hensh hensh at math.msu.edu
Thu Oct 12 00:02:55 CEST 2006

I actually ended up using Eduardos' idea because I didn't want the nasty
vertical lines showing up. I was hoping there was an easier way than
cranking everything out by hand.

Thanks to all who responded and thanks to Herbert for continuing to maintain
this wonderful package.


-----Original Message-----
From: pstricks-bounces at tug.org [mailto:pstricks-bounces at tug.org] On Behalf
Of Christophe Jorssen
Sent: Tuesday, October 10, 2006 2:15 PM
To: 'Graphics with PSTricks'
Subject: Re: [pstricks] Sketching the graph of the tangent function

pstricks-bounces at tug.org wrote:
> perhaps this one is a little bit shorter than Eduardos:

One even shorter :-)

> \usepackage{pstricks}
> \usepackage{pst-plot}
> \usepackage{pstricks-add}


> \begin{document}
> \begin{pspicture*}(-8,-11)(8,11)

\psplot[linewidth=1.pt,plotpoints=300]{-7.854}{7.854}{x TAN}

> \psaxes[xunit=1.571,tickstyle=top,arrowscale=2,showorigin=fals
> e,trigLabe ls]{->}(0,0)(-5.1,-10.5)(5.1,10.5)
> \uput*{0.6}[45](7.3,0){\Large$x$}
> \uput*{0.4}[180](0,10.){\Large$y$}
> \end{pspicture*}
> \end{document}


pstricks mailing list
pstricks at tug.org

More information about the PSTricks mailing list