Simply do:
Graph->SetTitle("");
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch]
On Behalf Of Antonio Bulgheroni
Sent: Tuesday, October 14, 2008 11:20 AM
To: ROOT Talk
Subject: [ROOT] Histogram and Graph title
Dear ROOTers,
I would like to ask your help for a problem concerning histogram and especially graph title.
I have a macro that is plotting on different canvases several histograms and graphs. Generally speaking I would like to keep the object visible so in my style I have the line:
gStyle->SetOptTitle( 1 );
In case I want to plot a histogram without title, then before drawing I set the kNoTitle bit using
histo->SetBit( TH1::kNoTitle, true );
but this doesn't work with graph!
I've looked at the code of the THistPaint and TGraphPaint and, indeed, the second is not checking the kNoTitle bit before drawing the title. If I globally disable the option via the gStyle, then also the Graph is plotted w/o title. I'm puzzled!
My ultimate question is: how can I plot graphs w/o title and w/o modifying the style?
Thanks for helping,
Antonio
"There are 10 kinds of people. Those that understand binary and those that don't." Received on Tue Oct 14 2008 - 11:26:47 CEST
This archive was generated by hypermail 2.2.0 : Tue Oct 14 2008 - 17:50:01 CEST