TLegend header properties

Hi,

I have two questions regarding TLagend:

  1. I am trying to center the header of my TLegend. Is this possible? From the source code of the method TLegend::SetHeader(), looks like the way to do that is to modify the first entry in the TList of fPrimitives belonging to the TLegend object, but a method to do so does not exist…

  2. Is there a way to add a line between the header and the rest of the entries in the TLegend?

Thanks in advance,
Ivan

   TLegendEntry *header = (TLegendEntry*)leg->GetListOfPrimitives()->First(); 
   header->SetTextAlign(22);

This is not foreseen right now. The only way, for you, would be to draw a TLine at the right place.

Thanks.