[pstricks] psclip shifts grid

Martin Chicoine martin.chicoine at umontreal.ca
Fri Feb 18 16:04:24 CET 2011


In the following example, the psgrid is shifted when clipped:

 

\documentclass{article}

\usepackage{pstricks-add}

 

\begin{document}

 

% grid is shifted when placed inside psclip

\begin{psgraph}[arrows=->](0,0)(-2.75,-0.5)(2.5,3.6){5cm}{5cm}

\psclip{\psframe[linestyle=none](-2.75,-0.5)(2.5,3.6)}

  \psgrid[xunit=1,yunit=1]

  \psplot[algebraic]{-2.5}{2.5}{((.5-x)^2+(2-x^2)^2)^(.5)}

\endpsclip

\end{psgraph}

 

% grid is not shifted without psclip

\vspace{2cm}

\begin{psgraph}[arrows=->](0,0)(-2.75,-0.5)(2.5,3.6){5cm}{5cm}

  \psgrid[xunit=1,yunit=1]

  \psplot[algebraic]{-2.5}{2.5}{((.5-x)^2+(2-x^2)^2)^(.5)}

\end{psgraph}

 

\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 

Martin.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20110218/fccd5e4b/attachment.html>


More information about the PSTricks mailing list