I am not sure about output which I get.
I attached just most important parts of my code because it is long.
Int_t pro = 7;
TCanvas *c1;
TH1D *roz [pro];
for(Int_t k=0; k< pro ;k++){
roz[k] = new TH1D(("aa"+nn).c_str(),"x", ile, start, end);
//part of code where histograms are filled
if(k==0){
c1= new TCanvas("can" ,"W",100,100,1024,1024);
c1->Divide(1,pro);
}
c1->cd(k+1);
roz[k]->Draw();
}
The thing which I do not understand is that I receive two Canvases with that distribution of histograms.
Can you tell me why it occurs and how to eliminate that?
Thank you for your fast reply but unfortunately it does not change anything.
I still have the same output scheme as before.
Maybe some information will be essential like that I use older version of ROOT 5.28/00b and I compile it with ACLiC
I am sorry for double post but I found that due to fits in my code this problem occurs.
When I am fitting without drawing results, everything is fine except that I do not obtain fit results which are essential.
I do not have an idea how to combine these two things.