Uncontinuous curves

Eddie Saudrais eddie.saudrais at wanadoo.fr
Tue May 11 08:45:04 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.
-----------------------------------------------------------------------------


-----Message d'origine-----
De : Nicolas FRANCOIS <nicofran at club-internet.fr>
À : pstricks at tug.org <pstricks at tug.org>
Date : mardi 11 mai 1999 01:12
Objet : Uncontinuous curves


>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 ?


Dear Nicolas,

You can use brackets {-)} and {(-} (it's not a smiley !). The problem is
that -( and )_ don't exist  :-(   (it's a smiley !).
Well, this is a possible trick :

\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)(3.9,0.93)
     \psline[rbracketlength=0.5]{(-}(3.9,0.93)(3.901,0.93)    %it's look
like a half-circle
     \psline[linewidth=0.5mm](4.1,4.07)(7.5,4.07)
     \psline[rbracketlength=0.5]{-)}(4.099,4.07)(4.1,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)(1.9,1)
     \psline[rbracketlength=0.5]{(-}(1.9,1)(1.901,1)
     \psline[linewidth=0.5mm](6.1,1)(7.5,1)
     \psline[rbracketlength=0.5]{-)}(6.099,1)(6.1,1)
     \psline[linewidth=0.5mm](2.1,4.14)(5.9,4.14)
     \psline[rbracketlength=0.5]{-)}(2.099,4.14)(2.1,4.14)
     \psline[rbracketlength=0.5]{(-}(5.9,4.14)(5.901,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}

It's "quick and dirty", but you have not to drawn an arc at each end of the
curve...

Eddie

PS : you are french ?....

|--------------------------------------------------------|
|             Envoyez vos zimels à                       |
|         eddie.saudrais at wanadoo.fr              |
|
|
|                Ma page maison :                          |
| http://perso.wanadoo.fr/eddie.saudrais   |
|--------------------------------------------------------|


-----------------------------------------------------------------------------
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