[pstricks] dataread in a table within multido loops

Hensh, Richard hensh at math.msu.edu
Fri May 14 03:33:42 CEST 2010


Try using the package macro \check<arrayname> and \cachedata like this:

\multido{\i=1+1}{12}{\checkMonths(\i)\psline[linewidth=1pt]{->}(\cachedata,0)(\cachedata,1)}

regards
rick

>> maybe possible with arrowjobx ...
>> Michael uploaded the package some time ago.
>>
> Yes---arrayjobx (a version of arrayjob updated so as not to conflict with array as used in matrix construction and the like) can make multidimensional arrays (data tables) whose elements can be extracted using \multido.
>

ok thanks. I have tried to find a solution to my problem without
success. I feel like just
a little thing is missing, like a \endcsname:

\begin{figure}[h]
\newarray{\Months}
\readarray{Months}{1&2&3&4&5&6&7&8&9&10&11&12}
\begin{pspicture}(-2.4,-3)(8.5,3)
\multido{\i=1+1}{12}{\psline[linewidth=1pt]{->}(\value{\Months(\i)},0)(\value{\Months(\i)},1)}
\end{pspicture}
\end{figure}

Thank you

M.


More information about the PSTricks mailing list