[pstricks] discontinuous graphs

Herbert Voss Herbert.Voss at FU-Berlin.DE
Tue Apr 15 21:32:52 CEST 2008


Markus schrieb:

> Is there any solution to prevent pstricks from drawing the vertical lines in
> 
> y = floor(x) - x
> 
> automatically? Is there any possibility to detect where the function 
> is not continuous?

not really, but you can use multido

\documentclass{article}
\usepackage{pstricks-add,multido}
\begin{document}

\begin{pspicture}(-5,-1.2)(5,1.2)
\psaxes{->}(0,0)(-5,-1.2)(5,1.2)[$x$,270][$y$,0]
\multido{\iA=-5+1,\rA=-4.001+1.0}{10}{%
   \psplot[linecolor=blue,linewidth=1.5pt]{\iA}{\rA}{x floor x sub}}
\end{pspicture}

\end{document}

Herbert



More information about the PSTricks mailing list