Setting of a TF1

Hi all,
could someone explain me how to change the attribution of a TF1?

{
   fun1 = new TF1("fun1","TMath::Poisson(x,5)",0,15);
   fun2 = new TF1("fun2","TMath::Gaus(x,5,sqrt(5),1)",0,15);
   
   fun1->SetTitle("Poisson-Gauss");

   c1->SetGridx();
   c1->SetGridy();

   fun1->Draw();
   fun2->Draw("SAME");

   c1->Update();

}

But the line color and style are the same and I would to change them.
I change them with the panel but I prefer to change with code.
Thank you
Ciccio

{
   TCanvas *c1 = new TCanvas("c1","c1");
   fun1 = new TF1("fun1","TMath::Poisson(x,5)",0,15);
   fun2 = new TF1("fun2","TMath::Gaus(x,5,sqrt(5),1)",0,15);
   fun2->SetLineColor(kRed);

   fun1->SetTitle("Poisson-Gauss");

   c1->SetGridx();
   c1->SetGridy();

   fun1->Draw();
   fun2->Draw("SAME");
}

When you have done mods interactively on a canvas, save it as a .C file and you will get the corresponding actions you should do in a macro.

Hi,
Thank you!
Before to write the topic, I tried with that command, but I didn’t obtain the result, I don’t know.
Now it is all ok.
Thank you
Ciccio