Ric,
This is rather puzzling.  I took care of the wrapping/break problem before
trying it.  In fact I think your previous code was identical to what I was
working with yesterday that I could not get to work.  I am using a version
of j601 that I just downloaded 2 days ago so I would think it would have the
latest library.

I did try your new code and it does work!  It is similar to a trick I tried
yesterday without success, so will have to examine it and see what was
exactly different from what I did.

Thanks! I now have two working ways to approach this (using multi and using
sub), so I can see which is going to work better for me in the long run

- Ed

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sherlock, Ric
Sent: Monday, June 25, 2007 12:36 AM
To: Programming forum
Subject: RE: [Jprogramming] Problem with MultiPlot

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

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.9.6/863 - Release Date: 6/23/2007
11:08 AM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.9.6/863 - Release Date: 6/23/2007
11:08 AM
 

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

Reply via email to