[ROOT] 2D histograms and profiles

From: Sam Waldman (waldman@HEP.Stanford.EDU)
Date: Fri Jun 28 2002 - 20:35:59 MEST


	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



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