Hi all,
a somewhat cleaned version of the macro may be found at:
http://www.bl.physik.uni-muenchen.de/~schaileo/macros/projxy.C
Cheers
Otto
On Sat, 29 Jun 2002, Rene Brun wrote:
> Hi Sam,
>
> In attachement an example (based on an original script from Otto Schaile)
>
> Rene Brun
>
> On Fri, 28 Jun 2002, Sam Waldman wrote:
>
> >
> > Hi folks,
> >
> > I have a 2D histogram and I am trying to plot the projection of
> > the distribution onto each axis. The data starts in a tree, which I
> > then split out into two TH1F's and one TH2F:
> >
> > tree->Draw("xaxis>>hx(200,0,2000)","","hist");
> > tree->Draw("yaxis>>hy(200,0,2000)","","hist");
> > tree->Draw("yaxis:xaxis>>hxy(200,0,2000,200,0,2000)","","hist");
> >
> > Now I would like to draw these three histograms at once with the scatter
> > plot in the center, the x axis profile along the bottom edge of the
> > scatter plot, and the y axis profile along the left side of the scatter
> > plot. But in order to do this I'd like to transpose the x and y axis of
> > hy. Is there any way to do this?
> >
> > Thanks for the help,
> >
> > sam waldman
> >
> >
>
--
Otto Schaile Sektion Physik, LMU Muenchen
Phone: +49 89 289 14070 Am Coulombwall 1, D-85748 Garching, Germany
GSM: +49 160 1553598
FAX: +49 89 289 14072 EMail: Otto.Schaile@Physik.Uni-Muenchen.DE
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:58 MET