I'm using graphpite to graph some temperature values I'm pulling out of mysql. It works great except I can't seem to get the yaxis labels to not be cut off see this example http://www.blahz.org/temperatures/images/calgary-day.png
Here is the graph gen code I'm using any help would be appreciated.
$Graph =& new Image_Graph($width, $height);
$XAxis =& new Image_Graph_Axis(IMAGE_GRAPH_AXIS_X);
$XAxis->setDataPreprocessor(new Image_Graph_DataPreprocessor_Date($format));
$YAxis =& new Image_Graph_Axis(IMAGE_GRAPH_AXIS_Y);
I'm using graphpite to graph some temperature values I'm pulling out of mysql. It works great except I can't seem to get the yaxis labels to not be cut off see this example
http://www.blahz.org/temperatures/images/calgary-day.png
Here is the graph gen code I'm using any help would be appreciated.
$Graph =& new Image_Graph($width, $height);
$XAxis =& new Image_Graph_Axis(IMAGE_GRAPH_AXIS_X);
$XAxis->setDataPreprocessor(new Image_Graph_DataPreprocessor_Date($format));
$YAxis =& new Image_Graph_Axis(IMAGE_GRAPH_AXIS_Y);
$YAxis->showLabel(IMAGE_GRAPH_LABEL_ZERO);
$Plotarea =& $Graph->add(new Image_Graph_Plotarea($XAxis, $YAxis));
$Plot =& $Plotarea->addPlot(new Image_Graph_Plot_Smoothed_Area($DataSet));
$Plot->setLineColor(IMAGE_GRAPH_RED);
$BLUE =& $Graph->newColor(IMAGE_GRAPH_GREEN, 50);
$Plot->setFillStyle($BLUE);
$Arial =& $Graph->addFont(new Image_Graph_Font_TTF("/usr/X11R6/lib/X11/fonts/truetype/arial.ttf"));
$Arial->setSize(8);
#$Graph->Thumbnail($width,$height);
$Graph->add(new Image_Graph_Grid_Lines());
$Graph->done;
Thanks