[pstricks] Special Labels with \psaxes
msharpe at ucsd.edu
Wed Jun 16 01:22:56 CEST 2010
On Jun 15, 2010, at 4:01 PM, Rich Shepard wrote:
> Example 6-1-27 (page 322) of TLGC2 redefines \pshlabels as months rather
> than as numbers.
> I want to label the x axis with 35 dates (01-Dec-2008 through
> 04-Jan-2009). They are currently in a comma-separated list in the file named
> xlab.dat. What approach (arrayjob or listing all in \ifcase#1 as in the
> example) would be most efficient and appropriate for this situation?
In my opinion, arrayjob, or its latest incarnation, arrayjobx, is better suited for the labels. When reading an array, arrayjob[x] expects & as data separator rather than comma, and its easiest to a global search and replace on the data file to manage this. Then a simple \multido with \uput should allow you to write all the labels efficiently.
More information about the PSTricks