[pstricks] multido moves the origin

Wojtek listywojtka at gmail.com
Thu May 26 19:07:09 CEST 2011


Hi,
I want to put lines at an increasing angle increments. Below is the complete

program:
===========================================
%!TEX TS-program = xelatex
\documentclass{article}
\usepackage{pstricks, pst-plot}
\def\moj{590} %%%%% Number of iterations: change that to any number
\begin{document}

\begin{pspicture}(20,10)
\psline[linecolor=blue, linewidth=.3pt](0,-1)(0,7)%%

\multido{\ikat=0+1}{\moj}{
\rput{\ikat}{\psline(0,0)(6,0)}}%

\psline[linecolor=red, linewidth=.3pt](0,-1)(0,7)%%
\end{pspicture}

\end{document}

===========================================

Experimenting with large numbers of iterations (the variable "moj" in the
4th
line of the program) shows that identical blue line before iteration and the
red line
after iteration are not the same. The bigger number "moj" the more divergent

the lines become. When "moj" is bigger than 360 the supposedly identical
lines
within the iteration start to differ in length and angle as well.
Is it a bug in multido?

Wojciech Wieczorek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20110526/2ec4c1f4/attachment.html>


More information about the PSTricks mailing list