PHPlot Sample - Adding Disclaimer Text
This example adds disclaimer text to the bottom of the plot. (2012-03-23)
Reference: Discussion forum thread
The Plot:

The Code:
~~~~
:::php
DrawText('', 0, 400, 595, $text_color, STD_DISCLAIMER,
'center', 'bottom');
}
$data = array(array('', 0, 0, 0), array('', 5, 10, 30));
$plot = new PHPlot(800, 600);
$plot->SetTitle('Plot With Annotation');
$plot->SetXTitle('This is the X Axis');
$plot->SetYTitle('This is the Y Axis');
$plot->SetDataType('data-data');
$plot->SetDataValues($data);
$plot->SetPlotType('lines');
$plot->SetPlotAreaWorld(0, 0);
# Increase the bottom margin to leave room for our text:
$plot->SetMarginsPixels(NULL, NULL, NULL, 100);
# Set an annotation callback, and pass it the PHPlot object:
$plot->SetCallback('draw_all', 'annotate', $plot);
# Configure the Generic font, used by the callback:
$plot->SetFontTTF('generic', DISCLAIMER_FONT, 12);
$plot->DrawGraph();
~~~~~
?>