Cannot set x axis limit?

I want the axis to be showing from 0 to 365, but it is showing from 120 to 365…
I have tried a couple of different things like setlimit, setrange on getxaxis and drawframe(xmin,xmax,ymin,ymax) in c1 canvas but no luck. Does any of you know what i did wrong?? thanks

#include “TFile.h”
#include “TTree.h”
#include “TGraphErrors.h”
#include “TCanvas.h”

void seasondependencetest(void)
{
const char *data_file = “seasondependence1.txt”;
const char *data_file2 = “seasondependence2.txt”;
const char *data_file3 = “seasondependence3.txt”;
const char *root_file = “seasondependence.root”;

TFile *f = TFile::Open(root_file, “RECREATE”);
TTree *ntuple1 = new TTree(“ntuple1”, “data from ascii file”);
ntuple1->ReadFile(data_file, “date1/D:y:z”); // “date1/D:y:z” or "date1:y:z"
ntuple1->Write();

TTree *ntuple2 = new TTree(“ntuple2”, “data from ascii file”);
ntuple2->ReadFile(data_file2, “date2/D:y2:z2”); // “date1/D:y:z” or "date1:y:z"
ntuple2->Write();

TTree *ntuple3 = new TTree(“ntuple3”, “data from ascii file”);
ntuple3->ReadFile(data_file3, “date3/D:y3:z3”); // “date1/D:y:z” or "date1:y:z"
ntuple3->Write();

TGraphErrors *gr1 = new TGraphErrors(data_file, “%lg %lg %lg”);
gr1->SetNameTitle(“gr1”, “a simple graph;Days;Charge Values (fC)”);
gr1->SetLineColor(kRed);
gr1->SetLineWidth(4);
gr1->SetMarkerColor(kBlack);
gr1->SetMarkerStyle(21);
//gr1->GetXaxis->SetLimits(1,365);
gr1->Write();

TGraphErrors *gr2 = new TGraphErrors(data_file2, “%lg %lg %lg”);
gr2->SetNameTitle(“gr2”, “a simple graph;Days;Charge Values (fC)”);

gr2->SetLineColor(kBlue);
gr2->SetLineWidth(4);
gr2->SetMarkerColor(kBlack);
gr2->SetMarkerStyle(21);
gr2->Write();

TGraphErrors *gr3 = new TGraphErrors(data_file3, “%lg %lg %lg”);
gr3->SetNameTitle(“gr3”, “a simple graph; Days;Charge Values (fC)”);
gr3->SetLineColor(kGreen);
gr3->SetLineWidth(4);
gr3->SetMarkerColor(kBlack);
gr3->SetMarkerStyle(21);
gr3->Write();

delete f; // automatically deletes “ntuple1”, too

TCanvas *c1 = new TCanvas(“c1”, “A Simple Graph Example”, 200, 10, 700, 500);
c1->SetGrid();
c1->DrawFrame(1,25,365,45);
gr1->Draw(“ALP”);
gr2->Draw(“LP”);
gr3->Draw(“LP”);
c1->Modified(); c1->Update();
}

If you:
c1->DrawFrame(1,25,365,45);
then:
gr1->Draw(“LP”);