[pstricks] skipping domain values in psplot
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Fri Mar 19 15:40:23 CET 2010
Am 19.03.2010 14:47, schrieb Hensh, Richard:
> Dear All,
>
> The code fragment below works exactly as expected. The gamma function is plotted from
> x= -0.99 to x = 5 and the vertical asymptote at x=0 is ignored. Is there a way modify my postscript definition of f at x further to trick (no pun intended) psplot into ignoring multiple inputs. The appropriate list in this example would be {-5, -4, ..., 0} but, in general, such a list could be arbitrary.
\documentclass[12pt]{article}
\usepackage{pst-all}
\begin{document}
\def\xmin{-5}\def\xmax{5}
\def\ymin{-16}\def\ymax{16}
\def\dommin{-0.99}\def\dommax{\xmax}
\psset{yunit=3mm}
\begin{pspicture}(\xmin,\ymin)(\xmax,\ymax)
\psaxes[labels=none,ticks=none,axesstyle=axes,
arrowscale=1.5]{<->}(0,0)(\xmin,\ymin)(\xmax,\ymax)
\psplot[linecolor=blue,plotpoints=2000,linewidth=1.25pt,
yMaxValue=15]{\dommin}{\xmax}{x GAMMA}
\end{pspicture}
\end{document}
Herbert
More information about the PSTricks
mailing list