#include "TGraphErrors.h" void example01_B(){ TGraphErrors *myData = new TGraphErrors("dataset1.dat","%lg %lg %lg"); myData->SetTitle("Cross Section #sigma_{CC} (E_{#nu})"); myData->SetMarkerStyle(kFullSquare); myData->SetMarkerColor(kRed); myData->GetXaxis()->SetTitle("E_{#nu} (GeV)"); myData->GetXaxis()->SetTitleSize(0.050); myData->GetYaxis()->SetTitle("#sigma #times 10^{-42} m^{2}"); myData->GetYaxis()->SetTitleSize(0.050); myData->GetXaxis()->SetLabelSize(0.045); myData->GetYaxis()->SetLabelSize(0.045); myData->Draw("APE"); }