Rotate axis title and marker size in legend

Hi,

I have two questions:

  1. I would like to rotate the title of my y-axis by 90 deg. There is the function ‘RotateTitle’, but it only rotates it by 180 deg. Is there a way to obtain 90 deg instead???

  2. How can I increase the marker size in a legend? I tried SetMarkerSize with the class TLegendEntry, but it doesn’t have any effect.

I would be very grateful for good suggestions.

Thanks in advance,
Bettina

  1. Yes the rotation is 180 degrees only:

Other angles are not implemented. We can have a look. Right now the way to do it would be to not let TAxis draw the title and draw it yourself using TLatex.

  1. The TLegend attributes are taken from the object the legend refers to. Enlarge the makers on you plot and the TLegend marker size will enlarge too. Example:
{
   TFile f("hsimple.root");
   hpx->SetFillColor(48);
   hpx->SetMarkerStyle(20);
   hpx->SetMarkerSize(2);
   hpx->Draw("HP");
   TLegend *leg=new TLegend(0.2,0.2,0.4,0.4);
   leg->AddEntry(hpx,"hpx","fp");
   leg->SetTextFont(132);
   leg->SetHeader("Legend");
   leg->SetTextFont(42);
   leg->Draw();
}