[pstricks] rotated vector in pstricks

Juergen Gilg gilg at acrotex.net
Sun Jun 2 23:11:53 CEST 2013


Dear Ziggy,

there is another nice way to do the same -- try

\rput(0,0.5){\psline(0,0)(0.25;45)}

Now if you separate coordinates with a ";" instead of a "," -- this 
tells PSTricks to use POLAR COORDINATES (Radius;Angle with positive 
x-axis) instead of (x,y)

Very helpful for lines with a given length and angle with the horizontal 
starting in the origin.

Just as a little addition.

Regards,

Jürgen
Am 02.06.2013 22:57, schrieb Nitecki, Zbigniew H.:
> Juergen:
> I can't believe I made as stupid a mistake as that and didn't catch it.  Thanks, this seems to work fine.
> Ziggy
>
> On Jun 2, 2013, at 16:51, Juergen Gilg wrote:
>
> Dear Ziggy,
>
> what about:
>
> \rput{45}(0,0.5){\psline(0,0)(0.25,0)}
>
> In the "(...)" PSTricks wants the coordinates -- seperated by a COMMA...
>
> Hope this helps.
>
> Regards,
>
> Jürgen
>
> Am 02.06.2013 22:44, schrieb Nitecki, Zbigniew H.:
>
> If I want to draw a vector of length, say, 0.25 making an angle of, say 45 degrees with the horizontal, and put it so its tail is at, say, (0,0.5), what is wrong with writing
> \rput{45}(0.05){\psline(0,0)(0.25,0)}
> ?
> I am getting the error message
> ./Parallel.tex:477: Missing number, treated as zero.
> <to be read again>
>                     \relax
> l.477 \rput{45}(0.05){\psline(0,0)(0.25,0)}
>
> If I hit "r" (ignore) the vector prints properly, but I would like to know what the missing number is.
>
> Zbigniew Nitecki
> Department of Mathematics
> Tufts University
> Medford, MA 02155
>
> telephones:
> Office    (617)627-3843
> Dept.    (617)627-3234
> Dept. fax    (617)627-3966
> http://www.tufts.edu/~znitecki/
>
>
>
>
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org<mailto:PSTricks at tug.org>
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
>
>
>
>
> --
> Jürgen Gilg
> Austr. 59
> 70376 Stuttgart
>
> tel   0711 59 27 88
> email gilg at acrotex.net<mailto:gilg at acrotex.net>
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org<mailto:PSTricks at tug.org>
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
>
>
> Zbigniew Nitecki
> Department of Mathematics
> Tufts University
> Medford, MA 02155
>
> telephones:
> Office    (617)627-3843
> Dept.    (617)627-3234
> Dept. fax    (617)627-3966
> http://www.tufts.edu/~znitecki/
>
>
>
>
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
>

-- 
Jürgen Gilg
Austr. 59
70376 Stuttgart

tel   0711 59 27 88
email gilg at acrotex.net

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


More information about the PSTricks mailing list