Uncontinuous curves

Nicolas FRANCOIS nicofran at club-internet.fr
Tue May 11 00:18:39 CEST 1999


-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

Hi. I would like to draw scale functions with discontinuities, using lines
with a half-circle at the end. How should I replace the >-< option to
achieve this ?

Example :

\documentclass{article}
\usepackage{PStricks}
\begin{document}
   \begin{tabular}{p{8cm}p{8cm}}
     \begin{pspicture}(8,5)
     \psline{->}(0.5,2.5)(7.5,2.5)
     \psline{->}(4,0.5)(4,4.5)
     \psline[linewidth=0.5mm]{-<}(0.5,0.93)(4,0.93)
     \psline[linewidth=0.5mm]{>-}(4,4.07)(7.5,4.07)
     \psdots[dotstyle=*,dotsize=4pt 2](4,2.5)
     \rput(3.7,4.07){$\frac{\pi}{2}$}
     \rput(4.3,0.93){$-\frac{\pi}{2}$}
     \end{pspicture}
    &
     \begin{pspicture}(8,5)
     \psline{->}(0.5,1)(7.5,1)
     \psline{->}(4,0.5)(4,4.5)
     \psline[linewidth=0.5mm]{-<}(0.5,1)(2,1)
     \psline[linewidth=0.5mm]{>-}(6,1)(7.5,1)
     \psline[linewidth=0.5mm]{>-<}(2,4.14)(6,4.14)
     \psdots[dotstyle=*,dotsize=4pt 2](2,2.5)(6,2.5)
     \rput(4.3,2.5){$\frac{\pi}{4}$}
     \rput(4.3,4.5){$\frac{\pi}{2}$}
     \end{pspicture}
   \end{tabular}
\end{document}

(hope it works well !)




\bye

---------------------------------------------------------------
         Nicolas FRANCOIS (nicofran at club-internet.fr)
       http://perso.club-internet.fr/nicofran/index.htm
We are Micro$oft. Resistance is futile. You wil be assimilated.
---------------------------------------------------------------

-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://www.tug.org/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------



More information about the PSTricks mailing list