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