Multiple line title

Hi!

Is there a possibility to have a multiple line title in a TGraph? I did not find anything about that in the manual or in this forum. Just adding \n or \r did not work.
Of course one could use a TPaveText or so and disable the “normal” title…

Thanks a lot,
Stefan

Yes, it is possible. Do:

   gr->SetTitle("#splitline{a simple}{graph}");

Thanks a lot for your quick answer! Perhaps this should be added to the user manual… :wink:

Cheers,
Stefan

It is already. The text string is a TLatex, and the #splitline{}{} operator is described in the TLatex documentation.

Hi!

Ok, my fault. Thanks anyway :slight_smile:

Cheers,
Stefan