[pstricks] It might be a bug in finding angle
Luis Sequeira
lfsequeira at gmail.com
Mon Jul 23 12:34:15 CEST 2012
There is a bug in your code...
In the second version, you have
\psarcn[origin={O},linecolor=red]{->}(3,3) ....
You set the origin at (O), which has coordinates (3,3) so now your center (3,3) is actually at (3,3)+(3,3), as appears in the picture.
You should write just
\psarcn[linecolor=red]{->}(3,3) ....
or (perhaps better, since it retains the fact that your coordinates are relative to (O)):
\psarcn[origin={O},linecolor=red]{->}(0,0) ....
Luis Sequeira
> Subject: [pstricks] It might be a bug in finding angle
> Message-ID:
> <1342918372.4009.YahooMailNeo at web121506.mail.ne1.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear Mr. Herbert,
>
> I found a bug in PSTricks.?
>
> Even though the points (O) and (3,3) represent the same point,
> the second pspicture produces an arc at a wrong pivot.?
>
>
>
> \documentclass[pstricks,border=1cm]{standalone}
> \usepackage{pst-eucl}
>
>
> \begin{document}
>
>
> \begin{pspicture}[showgrid=top](9,8)
> \pstGeonode(3,3){O}(5,5){A}(5,1){B}
> \pscircle[linestyle=dashed](O){2}
> \psarcn[origin={O},linecolor=red]{->}
> (O)%<=============== COMPARE THIS ONE
> {2}{(A)}{(B)}
> \psline(A)(O)(B)
> \end{pspicture}?
>
> \begin{pspicture}[showgrid=top](9,8)
> \pstGeonode(3,3){O}(5,5){A}(5,1){B}
> \pscircle[linestyle=dashed](O){2}
> \psarcn[origin={O},linecolor=red]{->}
> (3,3)%<================ WITH THIS ONE
> {2}{(A)}{(B)}
> \psline(A)(O)(B)
> \end{pspicture}?
>
> \end{document}
>
> Thank you in advance.
>
>
> best regards,
>
> Higgs Boson
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://tug.org/pipermail/pstricks/attachments/20120721/84812593/attachment-0001.html>
>
More information about the PSTricks
mailing list