#include "TF1.h" void example02(){ TF1 *myFunc = new TF1("myF","[0]*sin([1]/x)",0,10); myFunc->SetParameters(10.4,5); myFunc->SetTitle("Cross Section #sigma_{CC} (E_{#nu})"); myFunc->GetXaxis()->SetTitle("E_{#nu} (GeV)"); myFunc->GetXaxis()->SetTitleSize(0.050); myFunc->GetYaxis()->SetTitle("#sigma #times 10^{-42} m^{2}"); myFunc->GetYaxis()->SetTitleSize(0.050); myFunc->GetXaxis()->SetLabelSize(0.045); myFunc->GetYaxis()->SetLabelSize(0.045); myFunc->Draw(); }