[pstricks] inside arrows

Michael Sharpe msharpe at ucsd.edu
Fri Dec 26 19:04:14 CET 2008


On Dec 26, 2008, at 8:07 AM, Zbigniew Nitecki wrote:

> Which curve-drawing macros allow inside arrows?  The following code  
> produces no arrows:
> *********************************************
> 	\begin{pspicture}(-0.5,-0.5)(3.5,3.5)
> 		\pscurve[linewidth=1.2 pt, arrowscale=2, ArrowInside=->,  
> ArrowInsideNo=3]%
> 			(0,0)(1,2)(2,1)(3,3)
> 	\end{pspicture}
> *************************************************
> ditto if the \pscurve is replaced by a \psplot, but \psline works  
> fine.  Is there a way to create inside arrows for either a \pscurve  
> or a \psplot?
>

The pstricks-add docs list only \psline, \pspolygon, \psbezier,  
\pccurve and \pcline as responding to ArrowsInside. You can simulate  
an inside arrow on either a \psplot ot \parametricplot by drawing two  
curve segments, one with an arrow at one end, though you'll need to  
overlap the parameter a bit. Eg,

\psplot[arrows=->](0){.5}(x x mul}
\pslot{.48}{1}{x x mul}

Michael


More information about the PSTricks mailing list