STDCLR_jzplot_
0 0 255
255 0 0
0 128 0
128 0 128
255 0 255
128 128 0
0 128 128
255 255 0
210 180 140
0 255 255
165 42 42
128 128 128
To get just 4 colors, redefine STDCLR
STDCLR_jzplot_=: 4{. STDCLR_jzplot_
Sent from Mail for Windows 10
From: Rudolf Sykora
Sent: Monday, July 17, 2017 09:33
To: [email protected]
Subject: Re: [Jprogramming] reset colours in plot
> Do you have an example where colors are not reused?
I mean reuse = restart, i.e. not necessarily cycle (though possibly also).
Example:
-----
load 'plot'
pd 'reset'
pd 'type line'
pd i.3
NB. ****
pd 3+i.3
pd 'show'
-----
The question is: what should I write at the **** place, so that
the second plot has the *same* colour as the first plot.
This is an artificial example; the need comes when the 1st plot
is more complicated. I simply want to say: now use the same
chain of colours again.
Thanks
Ruda
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm