[pstricks] pspicture* doesn't seem to work with pscustom

Derek Collis iscah3195 at earthlink.net
Tue Apr 10 14:28:06 CEST 2007


Hi,

The pspicture* command doesn't seem to work if I have a pscustom 
command, as in the following. How can I prevent the graphs going beyond 
the pspicture defined region?


\documentclass[11pt]{article}
\usepackage{pstricks-add}

\begin{document}
\def\ftnA{x 2 exp 2 x mul sub}
\def\ftnB{x}
\begin{pspicture*}(-1,-1)(3,3) % doesn't restrict the graph between 
(-1,-1)(3,3) as it does without the pscustom environment.
  \begin{psclip}
    {
    \pscustom[linestyle=none]
      {\psplot{0}{3}{\ftnA}
       \psplot{3}{0}{\ftnB}
      }
    }
\psframe*[linecolor=blue](-2,-2)(3,3)
\end{psclip}
\psaxes[linewidth=0.025,subticks=0]
       {->}(0,0)(-1,0)(4,3)
\psplot{-2}{3.5}{\ftnA}
\psplot{-1.1}{3.5}{\ftnB}
\end{pspicture*}
\end{document}

Derek




More information about the PSTricks mailing list