Hi,
I have added a Qtwidget in my Qt Application to plot root histograms and so on. I plot my histogram like so:
TBranch *branch = tree->GetBranch(“Event_Branch”); //"Event_Branch"
branch->SetAddress(&E3);
tree->Draw(EveMem[plot]);
tree->SetMarkerStyle(7);
tree->SetMarkerColor(kRed);
tree->Draw(ExpBuffer);
tQtWidget1->cd(1) ;
tQtWidget1->Refresh();
Everything works fine and Ican see the plot. Now I want to change (customize) the axis titles which is by default set by the names given in the tree parameters.
usually one would use:
graph = new TGraph(…);
graph->GetXAxis()->SetTitle(…);
but here my Object a TQtWidget not a Tgraph Object.
How do I set the Title and other parameters in this case?
And, how do I superimpose two histograms when using TQtWidget and the tree->Draw Method.
Thanks,
dsmcc