Hello. Been collecting data for my jpgraphs since recieiving a weather station for Christmas

Now got 4 months worth and want to see all of it in one graph. Would really appreciate some ideas, I work by reverse engineering these scripts and as a result have trouble getting them to do new things.
Here is one that I'm working on
http://www.djmorgan.org.uk/weather/graphs/temp365.php
(it's to go with these
http://www.djmorgan.org.uk/weather/graphs/graph.php)
I want the temp365 graph to draw a 365 data point x axis and gradually fill it during the year, rather than draw an x axis with 4 months of data and increase it in size each day.
Here is the php
--------------------------------------------
<?php
require_once("GraphSettings.php");
check_sourceview(); # Checks to see if Source View Was passed to the script
$rawdata = array_reverse( file("dayfile.txt"));
// $rawdata = str_replace("," , "." , $rawdata);
// $rawdata = str_replace(";" , " " , $rawdata);
// $rawdata = str_replace("/" , "-" , $rawdata);
$rawdata = str_replace("," , " " , $rawdata);
$rawdata = str_replace("/" , "-" , $rawdata);
$y1 = array();
$y2 = array();
$x = array();
$wanted = 366;
$got = 0;
foreach($rawdata as $key) {
if ($got < $wanted) {
list($date, $gust, $gustbearing, $Tgust, $mintemp, $Tmintemp, $maxtemp, $Tmaxtemp,
$minbaro, $Tminbaro, $maxbaro, $Tmaxbaro, $maxrainrate, $Tmaxrainrate, $dayrn,
$avgtemp, $windrun) = preg_split('/ +/', $key);
$y1[] = $maxtemp;
$y2[] = $mintemp;
$x[] = substr($date,0,2);
$got++;
}
}
$y1 = array_reverse($y1);
$y2 = array_reverse($y2);
$x = array_reverse($x);
#############################################################################################################""
$graph = new Graph(1200,500,365);
$graph->SetScale("textlin");
$graph->SetMarginColor($SITE['bgncolor']);
$graph->SetFrame(true,'#CDCABB',4);
$graph->img->SetMargin(45,40,20,55);
$barplot=new barplot($y1);
$barplot2=new barplot($y2);
$barplot->SetAlign("center");
$barplot->SetFillGradient("red","#EEEEEE",GRAD_LEFT_REFLECTION);
$barplot2->SetAlign("center");
$barplot2->SetFillGradient("blue","#EEEEEE",GRAD_LEFT_REFLECTION);
$graph->Add($barplot);
$graph->Add($barplot2);
// titles
$graph->title->SetFont(FF_VERDANA,FS_BOLD,8);
$graph->title->Set($SITE['sitename']);
$graph->title->SetColor("azure4");
$graph->title->SetPos(0.003,0.54,"left","top");
//x-axis
$graph->xaxis->SetColor($SITE['txtcolor']);
$graph->xaxis->SetTickLabels($x);
$graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,6);
$graph->xaxis->SetTextLabelInterval(2);
$graph->xaxis->HideTicks(true,true);
$graph->xaxis->SetPos("min");
$graph->xgrid->Show(true);
$graph->xscale->SetAutoMin(1);
$graph->xscale->SetAutoMax(365);
//y-axis
$graph->yaxis->SetColor($SITE['txtcolor']);
$graph->yaxis->SetLabelFormat('%0.0f' . " °C");
$graph->yaxis->SetFont(FF_VERDANA,FS_NORMAL,6);
$graph->yaxis->scale->SetGrace(20);
$graph->yaxis->HideTicks(true,true);
// Set the colors for the plots
$barplot->SetColor("red");
$barplot->SetWeight(1);
$barplot2->SetColor("blue");
$barplot2->SetWeight(1);
// Print Wording on graphic
$txt2=new Text("cumulus");
$txt2->SetFont(FF_VERDANA, FS_BOLD,35);
$txt2->ParagraphAlign('left');
$txt2->SetPos(0.003,0.54,"left","center");
$txt2->SetColor("azure4@0.85");
$txt2->SetAngle(90);
$graph->AddText($txt2);
$txt1=new Text("Min. Max. temperature day by day");
$txt1->SetFont( FF_VERDANA, FS_BOLD,12);
$txt1->ParagraphAlign('left');
$txt1->SetPos(0.11,0.93,"left","center");
$txt1->SetColor("azure4@0.6");
$graph->AddText($txt1);
$txt3=new Text(date("M j Y",time()));
$txt3->SetFont(FF_VERDANA, FS_BOLD,8);
$txt3->SetPos(0.78,0.015,"left","top");
$txt3->SetColor("azure4");
$graph->AddText($txt3);
// Display the graph
if (! $SITE['debug']) {
$graph->Stroke();
} else {
debug_out("Graph Creation complete. Graph output suppresed due to debug");
}
exit;