Re: [ROOT] TGraph and TH1F superimpose...possible?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Aug 07 2003 - 09:04:04 MEST


Hi Zaldy,

see example in attachement

Rene Brun

On Thu, 7 Aug 2003, zaldy wrote:

> 
> ROOTers,
> 
> 
> 
> Is it possible to draw a TGraph and a TH1F on same pad?
> How? So far there are many scripts in the manual on how to superimpose 
> histograms, but I did not notice a TGraph and TH1F at same Pad.
> 
> For example in TGraph, I have X[n], Y[n]. But at the same time I want to 
> see every time the projection of Y[n] into a histogram, and draw it at the 
> same pad; maybe at the upper right corner of the pad-a small area on top 
> of the existing TGraph.
> 
> I find this interesting than creating two pads for the two objects.
> I don't know if there is one example for this in the tutorial.
> 
> appreciate your suggestion..
> 
> Thank you.
> 
> 
>  -- 
> 
> --------------------------------------------------------
>                    Zaldy A. Nawang 
>                    PS Users Room 2
>                    Yon Gokan, 
>                    E362, Neutrino Group, 
>                    IPNS, KEK, 
>                    Japan 
>                     
>                    e-mail: zaldy@neutrino.kek.jp
>                    Tel. No. : (81) 029864 - 5387
> --------------------------------------------------------
> 





This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET