[ROOT] How to draw TF2 on top of TH2?

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Thu Sep 16 2004 - 16:48:34 MEST


Hi,

I'm doing:
TH2F h("", "", 10, 0, 1, 10, 0, 1);
int i;
for(i=0;i<100;i++)h.Fill(gRandom->Uniform(),sqrt(gRandom->Uniform()));
h.Draw("colz");
TF2 f("", "x*x+sqrt(y)");
f.Draw("cont2same");

And get the attached (strange) output (Axis!) Why does plotting the TF2 
always change the axis scaling (and non-linear)?

What am I doing wrong?

Thomas.





This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET