Using Ric's example, you might also try

   Values=. ;i.&.>Days

to verify that it looks like it's doing the right thing.

On Fri, Jul 3, 2009 at 7:27 PM, Sherlock, Ric <[email protected]>wrote:

> > From: David Vincent-Jones
> > I am trying to plot data that is accumulated daily over several months.
> >
> > I would like the X axis scale to simply indicate the month name but how
> > would I then accommodate the variation in the days within the month
> > lengths?
>
> How about something like this?
>
>   Months=: 'Jan Feb Mar Apr May'
>   Days=: 31 28 31 30 31
>   Xticpos=: ": +/\ }: 0,Days
>   Values=: (+/Days) ?...@$ 100
>   ('xticpos ',Xticpos,';xlabel ',Months) plot Values
> Or:
>   ('xticpos ',Xticpos,';xlabel ',Months,';xtic 30 1') plot Values
>
> You could calculate the Xticpos to be in the centre of each month if you
> prefer.
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to