Yes, there is no reason why area could not be negative,
however the shading logic is different, like a self-intersecting
polygon with the last segment running pack to first point
along the Y=0 line.

--- Björn Helgason <[EMAIL PROTECTED]> wrote:

> Looks relatively ok but I would need to set the ylabels if I add to points
> and also have one set of ylabels to the left and another set to the right
> 
> What I would really like is to have a line, point and area with different
> colours
> Especially where there are overlaps.
> 
> It is a bit difficult to test the pd commands because when I get an error I
> have to shut down J and start with fresh session.
> 
> 2008/1/14, Oleg Kobchenko <[EMAIL PROTECTED]>:
> >
> > Here's area plot with highlighted overlap.
> >
> >    load'plot'
> >    A=. 11 15 56 23 12 67 87 22 15 4 22 33
> >    B=. 1 5 6 _8 12 17 25 22 15 8 4 3
> >
> >    'area'plot 100+ B,A,:A<.B
> >
> > --- Björn Helgason <[EMAIL PROTECTED]> wrote:
> >
> > > It would be good to have the option of setting different colours for
> > > overlapping areas
> > >
> > > 2008/1/14, Björn Helgason <[EMAIL PROTECTED]>:
> > > >
> > > > I also get a trouble with negative
> > > >
> > > > load 'plot'
> > > > pd 'new'
> > > > pd 'type area'
> > > > pd 11 15 56 23 12 67 87 22 15 4 22 33
> > > > pd 1 5 6 _8 12 17 25 22 15 8 4 3
> > > > pd'text 800 910 Hofn 7.9 M'
> > > > pd 'title heat and rain'
> > > > pd 'key "Middle rain blue line(mm)","Middle heat red line(C)"'
> > > > pd 'xlabel j f m a m j j a s o n d'
> > > > pd 'show'
> > > >
> > > > 2008/1/14, Devon McCormick <[EMAIL PROTECTED]>:
> > > > >
> > > > > I see that if I enter
> > > > >    pd 'type area'
> > > > > in Gosi's example before the "show" command, it looks like what he
> > might
> > > > > be
> > > > > talking about but also highlights a disadvantage of
> > > > > this kind of plot: the last curve plotted overwrites the ones before
> > > > > it.  It
> > > > > doesn't look so bad in the example given but try reversing the order
> > of
> > > > > the
> > > > > data lines so that "pd 11 15..." is first.  The other curve is
> > barely
> > > > > visible.
> > > > >
> > > > > On 1/14/08, Oleg Kobchenko < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > You mean you need an Area plot?
> > > > > >
> > > > > > --- Björn Helgason <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > > I have a plot and I want shading under the plot curves
> > > > > > > Light blue shading under the blue line down to the red line and
> > pink
> > > > > > under
> > > > > > > the red line
> > > > > > >
> > > > > > >
> > > > > > > load 'plot'
> > > > > > > pd 'new'
> > > > > > > pd 11 15 56 23 12 67 87 22 15 4 22 33
> > > > > > > pd 1 5 6 8 12 17 25 22 15 8 4 3
> > > > > > > pd 'text 800 910 Hofn 7.9 M'
> > > > > > > pd 'title heat and rain'
> > > > > > > pd 'key "Middle rain blue line(mm)","Middle heat red line(C)"'
> > > > > > > pd 'xlabel j f m a m j j a s o n d'
> > > > > > > pd 'show'
> > > > > > >
> > > > > > > --
> > > > > > > Björn Helgason, Verkfræðingur
> > > > > > > Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
> > > > > > > 801 Grímsnes ,t-póst: [EMAIL PROTECTED]
> > > > > > > Skype: gosiminn, gsm: +3546985532
> > > > > > > Landslags og skrúðgarðagerð, gröfuþjónusta
> > > > > > > http://groups.google.com/group/J-Programming
> > > > > > >
> > > > > > >
> > > > > > > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari
> > > > > > einfaldleikans
> > > > > > >
> > > > > > > góður kennari getur stigið á tær án þess að glansinn fari af
> > skónum
> > > > > > >           /|_      .-----------------------------------.
> > > > > > >          ,'  .\  /  | Með léttri lund verður        |
> > > > > > >      ,--'    _,'   | Dagurinn í dag                     |
> > > > > > >     /       /       | Enn betri en gærdagurinn  |
> > > > > > >    (   -.  |        `-----------------------------------'
> > > > > > >    |     ) |        (\_ _/)
> > > > > > >   (`-.  '--.)       (='.'=)
> > > > > > >    `. )----'        (")_(")
> > > > > > > >
> > > > >
> > ----------------------------------------------------------------------
> > > > > > > For information about J forums see
> > > > > http://www.jsoftware.com/forums.htm
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > ____________________________________________________________________________________
> > > > > > Be a better friend, newshound, and
> > > > > > know-it-all with Yahoo! Mobile.  Try it now.
> > > > > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > > > > >
> > > > > >
> > ----------------------------------------------------------------------
> > > > >
> > > > > > For information about J forums see
> > http://www.jsoftware.com/forums.htm
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Devon McCormick, CFA
> > > > > ^me^ at acm.
> > > > > org is my
> > > > > preferred e-mail
> > > > >
> > > > >
> > ----------------------------------------------------------------------
> > > > > For information about J forums see
> > http://www.jsoftware.com/forums.htm
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Björn Helgason, Verkfræðingur
> > > > Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
> > > > 801 Grímsnes ,t-póst: [EMAIL PROTECTED]
> > > > Skype: gosiminn, gsm: +3546985532
> > > > Landslags og skrúðgarðagerð, gröfuþjónusta
> > > > http://groups.google.com/group/J-Programming
> > > >
> > > >
> > > > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari
> > einfaldleikans
> > > >
> > > > góður kennari getur stigið á tær án þess að glansinn fari af skónum
> > > >           /|_      .-----------------------------------.
> > > >          ,'  .\  /  | Með léttri lund verður        |
> > > >      ,--'    _,'   | Dagurinn í dag                     |
> > > >     /       /       | Enn betri en gærdagurinn  |
> > > >    (   -.  |        `-----------------------------------'
> > > >    |     ) |        (\_ _/)
> > > >   (`-.  '--.)       (='.'=)
> > > >    `. )----'        (")_(")
> > > >
> > >
> > >
> > >
> > > --
> > > Björn Helgason, Verkfræðingur
> > > Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
> > > 801 Grímsnes ,t-póst: [EMAIL PROTECTED]
> > > Skype: gosiminn, gsm: +3546985532
> > > Landslags og skrúðgarðagerð, gröfuþjónusta
> > > http://groups.google.com/group/J-Programming
> > >
> > >
> > > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari
> > einfaldleikans
> > >
> > > góður kennari getur stigið á tær án þess að glansinn fari af skónum
> > >           /|_      .-----------------------------------.
> > >          ,'  .\  /  | Með léttri lund verður        |
> > >      ,--'    _,'   | Dagurinn í dag                     |
> > >     /       /       | Enn betri en gærdagurinn  |
> > >    (   -.  |        `-----------------------------------'
> > >    |     ) |        (\_ _/)
> > >   (`-.  '--.)       (='.'=)
> > >    `. )----'        (")_(")
> > > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> >
> >
> >
> >       
> > ____________________________________________________________________________________
> > Looking for last minute shopping deals?
> > Find them fast with Yahoo! Search.
> > http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> 
> 
> 
> -- 
> Björn Helgason, Verkfræðingur
> Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
> 801 Grímsnes ,t-póst: [EMAIL PROTECTED]
> Skype: gosiminn, gsm: +3546985532
> Landslags og skrúðgarðagerð, gröfuþjónusta
> http://groups.google.com/group/J-Programming
> 
> 
> Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
> 
> góður kennari getur stigið á tær án þess að glansinn fari af skónum
>           /|_      .-----------------------------------.
>          ,'  .\  /  | Með léttri lund verður        |
>      ,--'    _,'   | Dagurinn í dag                     |
>     /       /       | Enn betri en gærdagurinn  |
>    (   -.  |        `-----------------------------------'
>    |     ) |        (\_ _/)
>   (`-.  '--.)       (='.'=)
>    `. )----'        (")_(")
> > ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm



      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to