I think either of these will do what I think you're after:

NB. Option A
pd 'reset'
pd 'yrange 0 10'
pd 'xticpos ', ": 0 20 40 60 80 100 120   NB. xticpos pos1 pos2 pos3...
pd ary4;ary4a
pd 'show'

NB. Option B

pd 'reset'
pd 'yrange 0 10'
pd 'xrange 0 120'
pd 'xtic 20'
pd ary4;ary4a
pd 'show'

On Fri, Dec 17, 2010 at 6:11 PM, PackRat <[email protected]> wrote:
> I'm stuck again.  This time it has to do with plotting using "pd"
> commands.  Here's some data and some demo code:
>
> -------------------------------------------------------------
> load 'plot'
>
> ary4=. 19 29 47 57 63 76 86 97 104 108
> ary4a=. 6 4 6 4 6 4 6 4 6 4
>
> pd 'reset'
> pd 'yrange 0 10'
> pd 'xrange 0 ', ": <:120
> pd 'xtic ', ": <:#ary4
> pd 'xticpos ', > ": each ary4  NB. xticpos pos1 pos2 pos3...
> pd ary4a
> pd 'show'
> -------------------------------------------------------------
>
> If you omit the "xticpos" line, you will at least get a visible plot
> display--although it's incorrect.  Include the "xticpos" line, and you
> get the following error message:
>
> |option not found: 19: signal
> |       signal'option not found: ',j
>
> No matter what I've tried, I can't seem to get the "xticpos" command to
> work correctly.  Help, please.  Many thanks in advance!
>
> Harvey
>
> ----------------------------------------------------------------------
> 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