#include "TROOT.h" #include "TMath.h" #include "TCanvas.h" #include "TLegend.h" #include "TGraphErrors.h" #include "TLatex.h" #include "TFile.h" using namespace std; void fnbd1() { TCanvas* mycanvas = new TCanvas(); TGraphErrors *g1 = new TGraphErrors("opaltsallis.dat"); g1->SetMarkerStyle(24); g1->SetMarkerSize(.9); g1->SetMarkerColor(1); g1->SetLineColor(2); g1->Draw("AC"); TLegend *mL=new TLegend(0.4,0.53,0.7,0.7,""); mL->SetTextSize(0.024); mL->AddEntry(g2, "q value", "lep"); mL->Draw(); }