scaling a histogram

From: Manuel Calderon de la Barca Sanchez (calderon@star.physics.yale.edu)
Date: Thu Feb 17 2000 - 20:40:04 MET


Hello roottalk,

I had a problem when rescaling a histogram in log scale.  It seems that
for some choice of scale, the lower bound of the y axis is not rescaled
correctly, leaving parts of the histogram out of sight.  To reproduce, run
the macro below using the hsimple.root file in the tutorials.

Thanks,

Manuel.

-------
{ 
 TFile f("hsimple.root");
 hpx->Draw();
 gPad->Update();
 gPad->SetLogy();
 gPad->Modified();
 gPad->Update();
 TCanvas c2("c2","wrong log scale", 200,200,600,400);
 hpx->Draw();
 gPad->SetLogy();
 hpx->Scale(0.025);
 gPad->Modified();
 gPad->Update();
}



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET