On 17 July 2017 at 16:42, Tom Arneson <[email protected]> wrote: > To get just 4 colors, redefine STDCLR > > STDCLR_jzplot_=: 4{. STDCLR_jzplot_
Say I do not know in advance how many graphs will be there. (I know I can always count them, but...) Say the number of plotted lines in the 1st and 2nd group (see below) are not the same. Do I really need to count and define itemcolor list for each one plot "set", a, b below?: pd i.3 NB. 1a pd 1+i.3 NB. 2a pd 2+i.3 NB. 3a ... pd N+i.3 NB.Na NB. reset colors-chain somehow here pd *: i.3 NB. 1b pd % i.3 NB. 2b ... pd foo i.3 NB.Mb I want the graphs 1a,1b and 2a,2b and 3a,3b etc. have the same color, N and M don't have to be the same, the colour-chain length can have its own length. As I said, I thought something like MY_z =: STDCLR_jwplot_ pd 'itemcolor MY' would do it (when put between the two groups), but for some reason it does not work. Thanks Ruda ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
