How to fit two graph synchronous

Hi,
I have two graphs, and will be fit by two corresponding functions. Since these two functions have a same paramenter, I need to fit these two graph synchronous. anyone
can give me a hint how to do it. Thanks.
haiping

Hi Haipeng,

Add your graphs to a TMultiGraph object and use the
TMultiGraph::Fit routine :
http://root.cern.ch/root/html/TMultiGraph.html#TMultiGraph:Fit

There is an example in tutorials/fit/fitMultiGraph.C

Eddy