My graph result like below, I need to space between axis name or axis label, here need some space margin between "month", and x-axis labels and similarly for "clicks" and y-axis labels.

My graph result like below, I need to space between axis name or axis label, here need some space margin between "month", and x-axis labels and similarly for "clicks" and y-axis labels.

Try to find line no. 2344 in pDraw.class.php and add value in pixels you want to have as a margin between axis value and the description to the end of the line:
$TxtLeft = $XPos-$OuterTickWidth-2-($Bounds[1]["X"]-$Bounds[0]["X"])
Forexample: $TxtLeft = $XPos-$OuterTickWidth-2-($Bounds[1]["X"]-$Bounds[0]["X"]) - 10;
This will move the text 10 pixels more to the left.
You can try something like this -
$scaleSettings = array("XMargin"=>10,
"YMargin"=>10,
"Floating"=>TRUE,
"GridR"=>200,
"GridG"=>200,
"GridB"=>200,
"DrawSubTicks"=>TRUE,
"CycleBackground"=>TRUE);
$myPicture->drawScale($scaleSettings);
You could just remove the axis label and draw it with drawText and align the text using TEXT_ALIGN_TOPMIDDLE and the coordinates from the graph area.
I added two parameters ($XAxisTitleMargin and $YAxisTitleMargin). You may pass just like other parameters. The patch is at: https://gist.github.com/hkjeffchan/4b89545f879bcdc9c638
$Settings = array('XAxisTitleMargin'=>10, 'YAxisTitleMargin' => 10);
$myPicture->drawScale($Settings);