[pstricks] Problem with updated pstricks

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Jun 4 17:43:03 CEST 2011


Am 04.06.2011 16:43, schrieb David Arnold:

> Attached are mytest.pdf and colleaguetest.pdf.
>
> The code again:
>
> \documentclass{article}
> \usepackage{pstricks,pstricks-add}
>
> \begin{document}
>
> \psset{unit=0.25}
> \begin{pspicture}(-11,-11)(11,11)
> \psgrid[gridlabels=0pt,gridcolor=lightgray,subgriddiv=1](0,0)(-10,-10)(10,10)
> \psaxes[arrowscale=1.5,arrows=<->,ticks=none](0,0)(-11,-11)(11,11)

that should be:
\psaxes[arrowscale=1.5,arrows=<->,ticks=none,
         labels=none](0,0)(-11,-11)(11,11)
        ^ ^ ^ ^ ^ ^ ^

because ticks=none implies _not_ also labels=none.
However, you should use it this way:

\documentclass{article}
\usepackage{pstricks-add}

\begin{document}

\psset{unit=0.25}
\begin{pspicture}(-11,-11)(11,11)
\psgrid[gridlabels=0pt,gridcolor=lightgray,subgriddiv=1](-10,-10)(10,10)
\psaxes[arrowscale=1.5,arrows=<->,
   Dx=10,Dy=10](0,0)(-11,-11)(11,11)[$x$,0][$y$,90]
\psdots*[linecolor=red,dotsize=2pt 2](-6,1)(6,5)
\psplot[linecolor=blue,algebraic,
         arrows=<->,arrowscale=1.5]{-10}{10}{1/3*x+3}
\uput[135](-6,1){$(-6,1)$}
\uput[135](6,5){$(6,5)$}
\end{pspicture}

\end{document}

If you cannot or want not change all the examples, then do a
search and replace for unit=0.25 => unit=0.25,labels=none

Herbert


More information about the PSTricks mailing list