Thanks Mike .. strangely my lines look like yours but my bars sit one on the 
other .. guess I will just keep playing with it.

David

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Day
Sent: Tuesday, July 31, 2007 03:01
To: Programming forum
Subject: Re: [Jprogramming] Plot Question


This is a bit contrived but seems to do what you want

NB. data cribbed from plot demos
data =: > 0.6 1.8 2.4 1.2 1.8;0.8 2.4 1.6 5.6 4.8
pd 'reset'
pd 'type bar'
pd 'title Grouped with 2 Y Axes'
pd 'color blue,red'
pd 'ycaption Y Caption'
pd  1 0*"0 1 data
pd 'y2axis'
pd 'type bar'
pd 'ycaption Y2 Caption'
pd  0 1*"0 1 data

pd 'show'

Mike


David Vincent-Jones wrote:
> I am trying to plot with 'grouped bars' when the 2 sets of data have 
> differing Y scales.
>
> Starting with the plot sample:
> pd 'reset'
> dat=: i:2.2j60
> pd 'type bar'
> pd 'title Second Y Axis'
> pd 'color blue,red'
> pd 'ycaption Y Caption'
> pd  ? 10#10
> pd 'y2axis'
> pd 'type bar'
> pd 'ycaption Y2 Caption'
> pd  ? 10#1000
> pd 'show'
>
> This basically works but one bar sits on the other and is invisible.
>
> David
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
>   
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

__________ NOD32 2429 (20070730) Information __________

This message was checked by NOD32 antivirus system. http://www.eset.com


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

Reply via email to