RangeAxis

From: Thomas Kraemerkaemper (kraemerk@Physik.Uni-Dortmund.DE)
Date: Thu Feb 20 1997 - 19:07:36 MET


Hi,

I can't get a plot on top of a predefined coordinate system. What I
have tried so far looks like:


{
   gROOT->Reset();

   TFile f("output.root");
   f.ls();

   TCanvas *canvas = new TCanvas("canvas", "My Canvas", 0, 0, 640, 480);
   canvas->RangeAxis(0., 0., 60., 60.);
   // canvas->Range yields to the same (wrong) result.
   ntuple.Draw("x:y", "", "BOX");
}

The ntuple.Draw() ignores the 'RangeAxis' and plots in my example in
the range (0., 0., 60., 55.).

With 'ntuple.Draw("x:y", "", "BOXSAME");' nothing is shown at all.

Did I misunderstand the aim of RangeAxis? How can I directly access
the TAxis-objects after ntuple.Draw()?

Bye, Thomas Kr"amerk"amper.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:18 MET