I’ve noticed a strange problem where I can plot many objects (a histogram stack and two other histograms) on a pad within a canvas and everything looks good, but if I Print the canvas to a .pdf or .eps (vector graphics format) file a title will all of a sudden appear on the canvas image. For example, my canvas looks normal and lacks a title at the top if I open it in a TBrowser or save it as a .png or .jpg, but if I save it as a .pdf or .eps that default title object shows up at the top of the canvas:
(I’m referring to the white box on the above image that overlaps partially with the luminosity number. I don’t see that title or the box around it when saving the canvas as a .png or .jpg.)
I tried using gStyle->SetOptTitle(0) before plotting anything on the canvas and nothing changed, along with a couple other things (setting title offset, etc.) but nothing seems to make a difference. Does anyone know how I can get my .pdf versions of canvases to not have that automatic title drawn on them?
Thank you for your help!