Why axis titles aren't saved into a file?

Hello everyone.

I’ve been struggling a little bit for some time now because all my canvases with TF1 lose axis titles when saved into a file.

Is this a feature or a bug?
If it’s a feature how to suppress it?

How to reproduce the problem:

  1. Create a simple function like: TF1(“f1”, “x”, 1, 20)
  2. Give the X axis a title.
  3. Draw it (the axis should have a title).
  4. Save the canvas into a root file.
  5. Open the file in root using TBrowser.
  6. Now the title is gone.

Just a quick comment, I’m using PyRoot but I’m pretty sure the same thing happens in standard root.

Michal Wysokinski


I see, thank you for your respond.