Dear rooters,
I’m trying to draw several superimposed 2D histograms; I’m using the code at the end of the message in order to have a personal palette of colors instead of using TStyle::SetPalette. What happens is that the histograms are drawn empty. I noticed that other options are working, for example if I use “arr same” or “col same” or “text same” it works, but I need “box same” which seems to be the only not working. Am I making some kind of mistake or is it a bug?
Thanks!
Emiliano (for the PAMELA collaboration)
if ( estrip[l][m][n] > 0.7 ){
Xview->SetFillColor(38);
Yview->SetFillColor(38);
if ( estrip[l][m][n] > 2. ){
Xview->SetFillColor(7);
Yview->SetFillColor(7);
};
if ( estrip[l][m][n] > 10. ){
Xview->SetFillColor(10);
Yview->SetFillColor(10);
};
if ( estrip[l][m][n] > 100. ){
Xview->SetFillColor(5);
Yview->SetFillColor(5);
};
if ( estrip[l][m][n] > 1000. ){
Xview->SetFillColor(2);
Yview->SetFillColor(2);
};
if ( l == 0 ) {
Xview->Fill(n,m,1.);
pd1->cd();
Xview->Draw("box same");
pd1->Update();
};
if ( l == 1 ) {
Yview->Fill(n,m,1.);
pd2->cd();
Yview->Draw("box same");
pd2->Update();
};
};