[pstricks] Fwd: Create a random path
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Mon Jan 25 21:47:38 CET 2010
Am 25.01.2010 21:12, schrieb Marco Daniel:
> I am trying to construct a picture like this:
> http://www.matheplanet.com/matheplanet/nuke/html/uploads/8/7723_11_Offene_berdeckung.jpg
>
>
> I have no idea how to create such a path.
\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\psset{unit=1cm}
\begin{pspicture}(0,0)(8,6)
\listplot[plotstyle=ccurve]{
usertime srand
0 0
30 {
Rand 20 mul Rand 20 mul
} repeat
}
\listplot[linecolor=blue,plotstyle=ccurve]{
usertime srand
0 0
20 {
Rand 10 mul Rand 10 mul
} repeat
}
\end{pspicture}
\end{document}
Herbert
More information about the PSTricks
mailing list