[pstricks] Grid and axis are misaligned

Herbert Voss Herbert.Voss at fu-berlin.de
Fri Jun 29 09:08:07 CEST 2018


The grid and axis are misaligned in the following example. The problem 
disapears when adding % after the last bracket of pscustom. I guess it 
is a bug?

>
> \documentclass{article}
>
> \usepackage{pstricks-add}
> \psset{algebraic}
>
> \begin{document}
>
> \begin{psgraph}(0,0)(5,5){.3\textwidth}{6cm}
> \psclip{\psframe[linestyle=none](-1,-1)(5,10)}
> \psgrid[gridlabels=0pt]
>   \pscustom[linewidth=1.2pt,linecolor=blue]{
>     \psplot{1}{2}{x^2}
>   }
> \endpsclip
> \psaxes[](0,0)(5,5)
> \end{psgraph}

there is a trailing space:

     \begin{psgraph}(0,0)(5,5){.3\textwidth}{6cm}
         \psclip{\psframe[linestyle=none](-1,-1)(5,10)}
         \psgrid[gridlabels=0pt]
         \pscustom[linewidth=1.2pt,linecolor=blue]{
             \psplot{1}{2}{x^2}
         }%%%   <<==========
         \endpsclip
         \psaxes[](0,0)(5,5)
     \end{psgraph}

Herbert


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


More information about the PSTricks mailing list