void q17(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 = 20;
  //Create vectors that have the x and y coordinates 
  Double_t xVec[nPoints] = {1,2,3,4,5,6,7,7,8,8,9,9,10,11,11,11,12,12,13,13};
  Double_t yVec[nPoints] = {1.10,1.30,1.20,1.90,1.30,1.20,1.40,1.00,1.80,1.90,2.00,
			    1.00,2.0,1.00,1.20,1.00,2.20,1.00,1.90,3.80};
  //Create vectors that have the x and y errors
  Double_t xErrVec[nPoints] = {0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,
			       0.5,0.5,0.5,0.5,0.5}; //Common for x-error = 0
  Double_t yErrVec[nPoints] = {0.33,0.46,0.4,1.06,0.46,0.4,0.81,0,1.16,1.21,1.25,
			       0,1.15,0,0.4,0.0,1.44,0,1.12,1.34};
  //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(1);
  myGraph->SetLineWidth(2);
  //Set the marker size
  myGraph->SetMarkerSize(1.0);
  //Draw the graph
  
  myGraph->Fit("pol0");


  myGraph->Draw("AP e1");//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("Semester");
  myGraph->GetYaxis()->SetTitle("Q17 mean");

  TLatex *t1 = new TLatex();
  t1->SetNDC();//Make the dimensions as fractions of histogram                                     
  t1->SetTextSize(0.05);
  double xLocationFraction = 0.2;
  double yLocationFraction = 0.75;
  t1->DrawLatex(xLocationFraction,yLocationFraction,"Fit = 1.32 +/- 0.15");


  return;
}

