Re: [ROOT] Transparent pads

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri May 24 2002 - 22:52:27 MEST


Hi Anne-Sylvie,

See an example in the attachement

Rene Brun


On Fri, 24 May 2002, Anne-Sylvie Nicollerat wrote:

> Hello,
> 
> I just have a simple question. I found this mail in the roottalk list
> dating from 1997:
> 
> > Scott Sampson wrote:
> >
> > > Hi,
> > >
> > > I want to do something sort of peculiar: I want to have a number of plots
> > > (each with its own axes etc...)  overlap partially. I want to
> > > be able to see the underlying points, axes labels, etc... from each
> > > plot. i.e. the background of the plots should be "transparent". Is there a
> > > way to do this in root? I tried drawing multiple frames in a single pad,
> > > but the old frame is deleted or, with the "SAME" option, I get both plots
> > > in the same frame. Can I get two frames (one offset from the other) to
> > > overlap transparently, each with its own points,axes etc...?
> > >
> > >
> >
> > Currently this is not possible, but we intend to support this feature.The
> > graphics output on the screen is not a problem, but graphics input
> > is non-trivial.
> > The correct way to implement this functionality will be to support
> > transparent pads (pad->SetFillStyle(0)).   Currently transparent pads
> > do not behave correctly.
> >
> > Rene Brun
> >
> 
> As I am now trying to do the same thing but I somehow don't manage, I
> was wondering if the problem was solved....
> 
> Actually, as soon as I want to plot an histogram beung filled in the
> following way:
> h1->SetFillColor(45);
> The histogram X axis gets covered by the filling color and it is not
> possible to see the ticks anymore.
> I tried to get it transparent by using various:
> h1->SetFillStyle(.....);
> but it didn't change anything...
> 
> I am using the  3.02/07 version of root on Unix.
> 
> Thanks a lot
> 
> Anne-Sylvie
> 
> 





This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:53 MET