Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ROOT] Problem with TPad

0 views
Skip to first unread message

Michael Kosta Mitrovski

unread,
Oct 19, 2005, 3:23:21 PM10/19/05
to roottalk (Mailing list discussing all aspects of the ROOT system)
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


0 new messages