[pstricks] Arrow Position
Vincent McGarry
vmcgarry at austin.rr.com
Sat Mar 22 18:21:04 CET 2008
Thanks for the succinct explanation, Herbert.
Vince
On Mar 22, 2008, at 11:48 AM, Herbert Voss wrote:
> he last segment of a line is taken into account for the arrow.
> When having a lot of plotpoints the dx of the last segment is smaller
> than the arrow width. This is the reason why you'll see the line
> when its width is greater than the arrow width at this point.
> A fix is to draw the line in two intervals:
>
> \documentclass{article}
> \usepackage{pstricks-add}
> \begin{document}
>
> \psset{unit=0.8}
> \begin{pspicture}(-8,-8)(8,8)
> \psgrid[gridlabels=0pt,gridcolor=black!15,subgriddiv=0](-7,-7)(7,7)
> \psaxes[Dx=5,Dy=5]{->}(0,0)(-8,-8)(8,8)[$x$,0][$y$,90]
> \psplot[linewidth=2pt,arrows=*-,
> plotpoints=500,algebraic]{-2}{3}{sqrt(x+2)-1}
> \psplot[linewidth=2pt,arrows=->, % plotpoints=20 is the default
> algebraic]{3}{8}{sqrt(x+2)-1}
> \rput*(4,2){$f$}
> \end{pspicture}
>
> \end{document}
>
>
> Herbert
More information about the PSTricks
mailing list