It's a bug.  What has happened is that the function plotter
noticed the discontinuous derivative and split the
domain into two parts (it also added points near the
discontinutity to try to give good resolution at that
abscissa).

Unfortunately it plotted the two parts in different colors,
which is a bug.  Your workaround is OK, as is

 'color blue' plot 0 3;'([: | 1 0 _0.5&p.)'

i. e. if you specify just one color, that color will be
used for the entire plot.

Henry Rich

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Nikitin
> Sent: Thursday, July 20, 2006 4:55 PM
> To: [email protected]
> Subject: [Jbeta] plot 2 color
> 
>    plot 0 3;'([: | 1 0 _0.5&p.)'
> 
> this command draws a single curve with 2 different colors. Is 
> it a bug or 
> feature and if it is a feature how do I disable it?
> 
> I can have found a workaround:
>   'color blue,blue' plot 0 3;'([: | 1 0 _0.5&p.)'
> 
> but it would be nice to know what is going on here.
> 
> 
> ----------------------------------------------------------------------
> 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