[pstricks] RE: ifelse in \psplot

Goebel, Juergen, OPE26 juergen.goebel at eads.com
Mon Oct 11 11:31:48 CEST 2004


> Herbert Voss [mailto:Herbert.Voss at alumni.TU-Berlin.DE] wrote:

>    \psplot{0}{24}{%
>       x 15 mul sin 3 mul
>       x 15 mul 3 mul sin
>       sub
>       4.5 mul
>       dup 0 lt { pop 0 } if
>    }
> 
> or
> 
>    \psplot{0}{24}{%
>       x 15 mul sin 3 mul
>       x 15 mul 3 mul sin
>       sub
>       4.5 mul
>       /y exch def
>       y 0 lt { 0 }{ y } ifelse
>    }

Something like this I tried, but couldn't manage to succeed.

Thanks a lot,

Jürgen




More information about the PSTricks mailing list