I created TCanvas and then several TPad. Then I drew them. If I understand I can get TVirtualPad from TCanvas using TCanvas::cd(). After doing it I called GetName(), but instead of name of TPad i see the name of canva.
So, how i can get real TPad from TCanvas?
P.S.: Actually, i want to SetLogy() and SetLogx() in a pad, but I want to get this pad from a canva.
Well, it looks like you need (because you create pads manually): p1 = new TPad("p1", "p1", ....); p1->SetNumber(1); p2 = new TPad("p2", "p2", ....); p2->SetNumber(2);
Yes! Thanks, it works!
Now I see that there is fNumber that is pad number identifier, but I didn’t know that pads aren’t numerated when i draw them on a canva.