Here's a step toward automating the generation of the vector of labels. (I'm not sure whether it makes sense to do so in your plotting code, in practice.)
label=. 3 : 0
([,' ',])/y { (65+i.#y){a.
)
y=. 0 0 1 1 2
label y
A A B B C
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
