void myGraph(void){ 
  gROOT->Reset();//Reset session memory
  gROOT->SetStyle("Plain");//Make style plain
  gStyle->SetOptStat(0);//Remove the statistics box from histogram

  //Make a canvas
  TCanvas * myCanvas = new TCanvas("myCanvas","Me canvas title");

  //For this example, I will plot 5 points
  const Int_t nPoints = 5;
  //Create vectors that have the x and y coordinates 
  Double_t xVec[nPoints] = {pow(10,-1),pow(10,-2),pow(10,-3),pow(10,-4),pow(10,-5)};
  Double_t yVec[nPoints] = {10,9,8,9,10};
  //Create vectors that have the x and y errors
  Double_t xErrVec[nPoints] = {0,0,0,0,0}; //Common for x-error = 0
  Double_t yErrVec[nPoints] = {0.1,0.1,0.1,0.1,0.1};
  //Create the TGraphErrors object
  TGraphErrors * myGraph = new TGraphErrors(nPoints,xVec,yVec,xErrVec,yErrVec);
  //Remove the title box
  myGraph->SetTitle("");
  //Set the marker style and color. 
  //See: https://root.cern.ch/doc/master/classTAttMarker.html
  myGraph->SetMarkerStyle(21);
  myGraph->SetMarkerColor(2);
  //Set the marker size
  myGraph->SetMarkerSize(1.0);
  //Draw the graph
  myGraph->Draw("AP");//A->Draw axis, L->Polyline, P->Draw marker
  //Set log-scale on x-axis
  myCanvas->SetLogx();
  //Set axis titles (Must define AFTER SetLogx)
  myGraph->GetXaxis()->SetTitle("x-axis title");
  myGraph->GetYaxis()->SetTitle("y-axis title");


  return;
}

