Sean O'Byrne wrote:
> Your workaround, without the x-offsets, works exactly the way I expect 
> 'stick' plot to work (but not the way it does work).  Unfortunately, I 
> can't always know before running the verb how many data sets I want to 
> plot.  I can manually count the number of rows in my matrix and plot 
> them all separately in different colours, but I'm not too keen on that. 

I don't use plot (and can't test this right now, because 
I'm on linux), so maybe I'm suggesting something
stupid.  But what is wrong with something like this?

pdrow=: dyad define"1
 pd 'color ',y
 pd x
)
pd&> 'reset';'type stick';'pensize 4'
matrix pdrow (#matrix){.colors
pd 'show'

(or, if you're using j504, use x. and y. instead of x and y)

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

Reply via email to