> 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

Reply via email to