Hi Mat,
"SAME" is not an option for TGraph::Draw (see list of options).
Because "SAME" includes the option "A", you do not draw the second graph
with the right scale.
For your second call, simply do graph_12->Draw("C")
Rene Brun
On Sat, 29 Sep 2001, Matthew Martin wrote:
> Hi Guys,
> I can't seem to draw two TGraphs on the same TCanvas. One always seems
> to overwrite the other, for example:
>
> TCanvas *c79 = new TCanvas("c79","Pion mass check",10,10,800,800);
> c79->cd(1);
> c79->SetGrid();
> graph_raw->Draw("AC");
> graph_l2->Draw("SAMEC");
> c79->SaveAs("dist.ps");
>
>
> Only results in one graph....
>
> cheers
>
> Mat
>
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:01 MET