{
auto c1 = new TCanvas("c1","Logarithm of intensity vs thickness of absorbator",200,10,700,500); //Making a canvas
c1->GetFrame()->SetBorderSize(12); //Setting a boardersize on the canvas
const Int_t n = 6;
Double_t x[n] = {0, 0.36, 0.725, 1.155, 1.485, 1.895}; //Defining the vector for the thickness
Double_t y[n] = {6.603708239, 6.339128627, 6.036150736, 5.718231393, 5.456702047, 5.080461954}; //Definig the vector for the logarithm of the intensity
Double_t ex[n] = {0, 0.005, 0.007071067812, 0.008660254038, 0.01, 0.01118033989}; //Defining the vector for the uncertainy of the thickness
Double_t ey[n] = {0.004738504413, 0.004767208019, 0.004926464143, 0.005060277095, 0.005269866458, 0.005827806096}; //Definig the vector for the uncertainty of the logarithm of the intensity
auto gr = new TGraphErrors(n,x,y,ex,ey); //Making a graph that takes in the vectors as parameters
gr->SetTitle("Logarithm of intensity vs thickness of absorber; Thickness x [cm]; Logarithm of intensity ln(I-I_B)"); //Setting the main title and the titles on the axis
gr->GetXaxis()->CenterTitle(true); // Axis label in the center
gr->GetYaxis()->CenterTitle(true); // Axis label in the center
gr->SetMarkerStyle(1); //Marker is a small dot
gr->SetMarkerColor(1); //Marker color is black
gr->SetLineWidth(1); //Setting the width of the line
gr->SetLineColor(9); //The line color is blue
gr->Draw("APEL"); //Drawing the graph in the canvas with axis and a simple polyline between the points
}