Looking at other plot examples I found an easier way to achieve my
needs.

date
   06-22   06-23   06-24   06-25   06-26   06-27
$date
   45
pd 'xlabel ',":date

That was far easier than reformatting with all the "s.

David

On Wed, 2008-07-16 at 07:47 +1200, Sherlock, Ric wrote:
> mth is a space-delimited string. Plot or pd will break/box the string on 
> spaces and remove the quotes to give 6 labels. The first and the last are 
> empty.
> Eg.
> 
>    load 'plot'
>    mth=. '"" "Feb-2004" "May-2004" "Aug-2004" "Nov-2004" ""'
>    ('xlabel ',mth) plot ?. 6#12
> 
>    dte=. '"06-30" "06-31" "07-01" "07-02" "07-03"'
>    ('xlabel ',dte) plot ?. 4#12
> 
> Does that help?
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:programming-
> > [EMAIL PROTECTED] On Behalf Of David Vincent-Jones
> > Sent: Wednesday, 16 July 2008 3:11
> > To: JSoftware
> > Subject: [Jprogramming] Plot Question
> >
> > Can somebody please explain how this example in the plot demos is
> > working.
> >
> > mth=. '"" "Feb-2004" "May-2004" "Aug-2004" "Nov-2004" ""'
> > pd 'xlabel ',mth
> >
> > I have as the first column of a table a list of dates that I wish to
> > use
> > on the X axis;
> > Typically: 06-30  06-31  07-01
> >
> > I am looking for a way to appropriately reformat my date structure as
> > needed but really do not understand the example in that mth appears to
> > have no shape at all.
> >
> > David
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to