Hi Ed,
The code I posted works for me. Maybe the longer lines which got wrapped
may have caused some problems? I've split those long lines into shorter
ones in the version below to stop that.

The other problem I've had in the past with running code from the forums
is that Outlook sometimes removes extra line breaks and I have to
restore them to get the original posted code.

If the code below still doesn't give you graphs with markers and lines
differing in colour, then maybe you have a different(older) version of
the standard library than I do?

load 'statfns plot'

data=: ?5 50$100
xbar=: mean data
range=: (max data) - min data

pd 'reset'
pd 'multi 3 2,6'
pd 'backcolor 222 222 206'
pd 'title Xbar/R Control Chart'
pd 'xgroup 0 '
pd 'ygroup 0 1 '
one=:(('type line;color blue');xbar)
one=:one,:('type marker;color red;pensize 2');xbar
two=:(('type line;color magenta');range)
two=:two,:('type marker;color green;pensize 2');range
pd one;<two
pd 'show'

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ] On Behalf Of Ed Cox
> Sent: Monday, 25 June 2007 15:43
> To: 'Programming forum'
> Subject: [Jprogramming] Problem with MultiPlot
>
> You have stated correctly what I want to do, but I tried
> running your code and it also just gives me the lines and not
> the markers.

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

Reply via email to