Top TPad's histo xaxis is not shown

Hi

I am trying to create a canvas with two TPads inside . My problem is that TH1 which is top pad, does not appear properly, ie the x-axis label is hidden ,although I have enough space between the two pads

[code] TPad *pad1 = new TPad(“pad1”,“pad1”,0,0.25,1,1);
pad1->SetBottomMargin(0);
pad1->SetLogy();
pad1->Draw();

    TPad *pad2 = new TPad("pad2","pad2",0,0,1,0.195);
    pad2->Draw();
   
    pad1->cd();
    pad1->SetTopMargin(0);
    pad1->Clear();
   //hs is the TStack histo
    hs->Draw("nostack");
   data->Draw("same")
    pad2->cd();
    ratio->Draw("ep")

[/code]

Thanks

Alex


If you explicitly call “pad1->SetBottomMargin(0);”, why do you complain afterwards?

Ooops… Sorry for the waste of time!

-a