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.

I was playing around with regular plots (not multiplots) and managed to do
what I need by means of the sub command.  I can get the two plots with both
lines and markers.  However I am still curious why I can not get it work
using multiplot.

Here is the code I got to work using sub instead of multiplot:

load 'statfns'
load 'plot'
data=: ?5 50$100
xbar=: mean data
range=: (max data) - min data
x=: i. #xbar
pd 'reset'
pd 'new'
pd 'sub 15 15 _15x _15x'
pd 'sub 3 2,8'
pd 'backcolor 222 222 206'
pd 'framebackcolor white'
pd 'title Xbar/R Control Chart'
pd 'type marker;color red;pensize 2'
pd x;xbar
pd 'type line;color blue;pensize 1'
pd x;xbar
pd 'new'
pd 'backcolor 222 222 206'
pd 'framebackcolor white'
pd 'type marker;color red;pensize 2'
pd x;range
pd 'type line;color blue;pensize 1'
pd x;range
NB.pd (<'type marker;color red;pensize 2'),.(<<xbar) ,:<<range
pd 'show'


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sherlock, Ric
Sent: Sunday, June 24, 2007 6:28 PM
To: Programming forum
Subject: RE: [Jprogramming] Problem with MultiPlot

On 6/24/07, Ed Cox <[EMAIL PROTECTED]> wrote:
> Any thoughts on this behavior?
> 
Ed,
If I understand correctly you are wanting the xbar and the range on
different plots with lines and markers for each, but the line and marker
should be different colors?
If so then this will do it. If not perhaps you can show us what you want
in two single plots?
I agree that backcolor doesn't seem to do anything.

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),:('type marker;color red;pensize
2');xbar
two=:(('type line;color magenta');range),:('type marker;color
green;pensize 2');range
pd one;<two
pd 'show'
----------------------------------------------------------------------
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