See this example
Rene Brun
void pad2() {
TH1F *h = new TH1F("h","test",100,-3,3);
h->FillRandom("gaus",1000);
TCanvas *c1 = new TCanvas("c1");
c1->Divide(2,1);
c1->cd(1);
h->DrawCopy();
c1->cd(2);
h->FillRandom("gaus",5000);
h->Draw();
c1->cd();
TPad *trans = new TPad("trans","",0,0,1,1);
trans->SetFillStyle(4000); trans->Draw(); trans->cd();
line->SetLineColor(kRed); line->SetLineWidth(4); line->Draw();
On Tue, 25 Oct 2005, Alexander Bürger wrote:
> Dear rooters,
>
> if there is a TCanvas divided in two pads, how can one draw a line
> which starts in the first pad and ends in the second? If I try this,
> the line shows only in the first pad and is hidden in the second.
>
> Thanks for your help,
>
> Alexander
>
Received on Tue Oct 25 2005 - 12:58:02 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:13 MET