[pstricks] Fwd: Re: Using Postscript Array Objects in \psplot

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed May 25 10:36:55 CEST 2011


-------- Original-Nachricht --------
Betreff: Re: Using Postscript Array Objects in \psplot
Datum: Wed, 25 May 2011 10:36:00 +0200
Von: Herbert Voss <Herbert.Voss at fu-berlin.de.be>
Newsgruppen: comp.text.tex
Referenzen: <CcednQBsHajoJ0HQnZ2dnUVZ_sSdnZ2d at supernews.com>

Am 25.05.2011 10:14, schrieb Randy Yates:
> \psplot[linecolor=red,plotstyle=curve,linewidth=2pt,plotpoints=10]{0}{9}%
>    [/I [0 1 0 1 0 1 1 1 1 0] def]%
>    {I x get}%

please provide _full_ working examples!
    [/I [0 1 0 1 0 1 1 1 1 0] def]
cannot work the first ] is taking as closing bracket for the
optional argument. Use [{...}]:

\documentclass{minimal}
\usepackage{pst-plot}
\begin{document}
\begin{pspicture}(10,1)
\psplot[linecolor=red,plotstyle=curve,linewidth=2pt,
         plotpoints=10,plotstyle=line]{0}{9}%
   [{/I [0 1 0 1 0 1 1 1 1 0] def}]%
   {I x cvi get}
\end{pspicture}
\end{document}

Herbert


More information about the PSTricks mailing list