[pstricks] psclip shifts grid

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Feb 18 16:59:12 CET 2011


Am 18.02.2011 16:04, schrieb Martin Chicoine:
> 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}
> \end{document}

Martin,
I fixed it with this version:
http://www.texnik.de/tex/generic/pst-plot/

Herbert


More information about the PSTricks mailing list