Looking into TAxis methods I came to the conclusion that
should make the labels lay on their sides (rotate by 90 degrees),
since the default is “h”. However, the only visible effect is this:
Warning in TAxis::Sort: Cannot sort. No labels
Is there a way to rotate the labels on the horisontal axis of the
histogram? I think there is, b/c I’ve seen some rotated at by
an angle that was not even 90 degrees …
Test macro: (getting hold of the palette is another thing that
does not work)
[code]
void palette_problem () {
gStyle->SetPalette(1);
TH2F* corrHisto = new TH2F(“corrHisto”, “”, 3, 0.5, 3.5, 3, 0.5, 3.5);
corrHisto->SetStats(kFALSE);
corrHisto->GetXaxis()->LabelsOption(“v”);
corrHisto->GetXaxis()->SetNdivisions(3);
corrHisto->GetYaxis()->SetNdivisions(3);
corrHisto->SetMaximum(1.0);
corrHisto->SetMinimum(0.0);
corrHisto->SetBinContent(1, 1, 1.0);
corrHisto->SetBinContent(2, 2, 1.0);
corrHisto->SetBinContent(3, 3, 1.0);
corrHisto->SetBinContent(1, 2, 0.7);
corrHisto->SetBinContent(1, 3, 0.4);
corrHisto->SetBinContent(2, 3, 0.0);
corrHisto->SetBinContent(2, 1, 0.7);
corrHisto->SetBinContent(3, 1, 0.4);
corrHisto->SetBinContent(3, 2, 0.0);
corrHisto->Draw(“COLZ”);
//TPaletteAxis palette = (TPaletteAxis)corrHisto->GetListOfFunctions()->FindObject(“palette”);
//palette->SetLabelFont(42);
//palette->SetLabelSize(0.04);
return;
}[/code]