[pstricks] ifelse in \psplot
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Mon Oct 11 11:18:06 CEST 2004
Goebel, Juergen, OPE26 wrote:
> \psplot{0}{24}{%
> x 15 mul sin 3 mul
> x 15 mul 3 mul sin
> sub
> 4.5 mul
> }
\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
}
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
More information about the PSTricks
mailing list