[pstricks] behavior of arrows when plotting functions and scaling

Herbert Voss LaTeX at zedat.fu-berlin.de
Mon Aug 21 23:08:06 CEST 2006


Ryan Higginbottom wrote:
> It seems to me that the commands \psline and \psplot have different
> behaviors with respect to arrowheads, and I was wondering if there is a
> way to correct the behavior of \psplot in this regard.  The example I
> include below is very simple, but it illustrates the problem I'm having
> with something a bit more complex.  I would like to use the arrows=<-o
> option, but when I scale the units, the arrowheads seem to be slightly
> misplaced.  (Note: this doesn't seem to happen when the units are left
> alone.)
> 
> When you compile the example below and magnify a bit, you will see what I
> mean.  The arrows on the top line are off a bit.  (I am trying to write
> something for a powerdot presentation, so even though the magnification
> may seem insignificant here, it is clear when on the presentation.)

plotpoints is set by default to 20. Choose a number of 5
and everything will be okay. Then one line segment has a length
larger than the arrow length, which is the problem here,
when having plotpoints > 10.

> \psplot[arrows=<-o,linewidth=1pt]{0}{2}{1}

\psplot[arrows=<-o,linewidth=1pt,plotpoints=5]{0}{2}{1}


Herbert





More information about the PSTricks mailing list