[pstricks] problem with pspicture* and psclip
Jean-Claude Moebs
jcmoebs at wanadoo.fr
Tue Sep 27 21:53:32 CEST 2005
Hello,
i have a problem when using \psclip in a pspicture* environnement :
the clipping from pspicture* doesn't work anymore.
It's really strange !
Here is my code :
\documentclass[a4paper]{article}
\usepackage{pstricks-add}
\begin{document}
\fbox{
\begin{pspicture*}(-1,-1)(7.8,7.8)
\psclip{%
\pscustom[linestyle=none]{%
\psplot{-1}{8}{x 1 add}
\psline(8,-1)
}
\pscustom[linestyle=none]{%
\psplot{-1}{8}{x -1 3 div mul 6 add}
\psline(8,-1)(-1,-1)
}
\psframe[linestyle=none](6,-1)(-1,8)
\psframe[linestyle=none](-1,2)(8,8)
}
\psframe[fillstyle=solid, fillcolor=lightgray,
linecolor=lightgray](-1,-1)(8,8)
\endpsclip
\psgrid[gridlabels=0, subgriddiv=2](0,0)(7,7)
\psaxes[linewidth=1.5pt]{->}(0,0)(7.5,7.5)
\psset{linewidth=1.2pt}
\psline(6,-1)(6,8)
\psline(-1,2)(8,2)
\psplot{-1}{8}{x 1 add}
\psplot{-1}{8}{x -1 3 div mul 6 add}
\end{pspicture*}
}
\medskip%
\fbox{
\begin{pspicture*}(-1,-1)(7.8,7.8)
% \psclip{%
% \pscustom[linestyle=none]{%
% \psplot{-1}{8}{x 1 add}
% \psline(8,-1)
% }
% \pscustom[linestyle=none]{%
% \psplot{-1}{8}{x -1 3 div mul 6 add}
% \psline(8,-1)(-1,-1)
% }
% \psframe[linestyle=none](6,-1)(-1,8)
% \psframe[linestyle=none](-1,2)(8,8)
% }
% \psframe[fillstyle=solid, fillcolor=lightgray,
linecolor=lightgray](-1,-1)(8,8)
% \endpsclip
\psgrid[gridlabels=0, subgriddiv=2](0,0)(7,7)
\psaxes[linewidth=1.5pt]{->}(0,0)(7.5,7.5)
\psset{linewidth=1.2pt}
\psline(6,-1)(6,8)
\psline(-1,2)(8,2)
\psplot{-1}{8}{x 1 add}
\psplot{-1}{8}{x -1 3 div mul 6 add}
\end{pspicture*}
}
\end{document}
%
Thanks,
mokaude
More information about the PSTricks
mailing list