Problem with TPad

From: Michael Kosta Mitrovski <Michael.Mitrovski_at_cern.ch>
Date: Wed, 19 Oct 2005 15:23:21 -0400


Dear Rooters,

I have a simple question. I am using TPad and I am trying to set the Limit at the x-axis and that works. If I am trying to do it at the y- axis it doesn't work. Here the part of my Macro :

TCanvas *c = new TCanvas("c","",900,700); c->cd();
c->SetFrameBorderMode(0);

TPad *pad = new TPad("pad","",0.05,0.02,0.55,0.98,0); pad->Draw();
pad->cd();

pad->SetLeftMargin(0.2);
pad->SetRightMargin(0.0);
pad->SetBottomMargin(0.15);
pad->SetTopMargin(0.1);

gr->GetXaxis()->SetLimits(-3.0,3.0);

gr->GetYaxis()->SetLimits(0.0,3.0);
gr->Draw("AP");

Thanks for the help.

Best regrads,

Michi Received on Wed Oct 19 2005 - 21:23:31 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:13 MET