I want to draw 2 functions in the same canvas. I used option “same”, but it didn’t work properly. Could you help me, please? Here is my code:
void B_Z()
{
TCanvas *c = new TCanvas("B(Z)", "B(Z) linear", 800, 600);
c->SetGrid();
c->SetTicks();
TF1 *f1 = new TF1("f1", "0.088807", 6, 21);
f1->SetLineColor(kRed-4);
f1->Draw();
TF1 *f2 = new TF1("f2", "0.08356", 21, 26);
f2->SetLineColor(kAzure);
f2->Draw("same");