[pstricks] Problem with arrayjob package and the array environment

Bruce Burlton bruceburlton at sympatico.ca
Fri Jan 4 03:21:28 CET 2008


Again, sorry for my silly question/posting of earlier today.

If anyone is interested below is the my final (at least for now) code and the attached .pdf the result.

I would be interested in any other solutions that people may have come up for the plotting of data against time, where time is presented in our normal (but mathematically clumsy)  yyy mm dd hh:mm:ss (or similar) format

Bruce Burlton

==================================================================================================
\documentclass{article}

\usepackage{pst-pdf}%
\usepackage{multido}
\usepackage{pstricks-add}%

\begin{document}

\def\xlabel#1{\ifcase#1 Jan\or Feb\or Mar\or Apr\or May\or Jun\or Jul\or Aug\or Sep\or Oct\or Nov\or Dec\or Jan\fi}
\def\xlabelinc#1{\ifcase#1 0\or 31\or 59\or 90\or 120\or 151\or 181\or 212\or 243\or 273\or 304\or 334\or 365\fi}

\begin{postscript}%
   \psset{yAxisLabel=Beta Angle (degrees),xAxisLabel={Time (months)},%
     xAxisLabelPos={5cm,5.5cm},yAxisLabelPos={-1.cm,9cm},llx=-2cm,lly=-2cm,urx=0.5cm,ury=0.5cm}%
   \begin{psgraph}[axesstyle=frame,{xticksize=0 30},{yticksize=0 365},Dx=365,Dy=10,Oy=40,xAxis=false](0,40)(365,70){10cm}{5cm}%
     \readdata{\datafile}{./data/beta.dat}%
     \listplot[linecolor=red]{\datafile}%
     \multido{\i=0+1}{13}{\rput[90](\xlabelinc{\i},37){{\makebox(0,0)[t]{\xlabel{\i}}}{\psline(0,3)(0,33)}}}%
   \end{psgraph}
\end{postscript}

\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20080103/6bc2f089/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-pics.pdf
Type: application/pdf
Size: 9545 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20080103/6bc2f089/attachment.pdf 


More information about the PSTricks mailing list