"; } $plot = new PHPlot(605, 250); $plot->SetImageBorderType('plain'); $plot->SetFont('title', 5); $plot->SetFont('x_title', 4); $plot->SetFont('y_title', 4); $plot->SetFont('x_label', 2); $plot->SetFont('y_label', 2); $plot->SetDataType('data-data-error'); $plot->SetDataValues($data); # Main plot title: $plot->SetTitle('source temperature profile'); $plot->SetPlotType('linepoints'); $plot->SetLineStyles(array('solid', 'dashed') ); $plot->SetLineWidths( 2.5 ); $colors = array('red', 'blue'); $plot->SetDataColors( $colors ); $plot->SetErrorBarColors( $colors ); $plot->SetPointShapes( array('delta', 'dot') ); $plot->SetXLabel( 'longitudinal position (m)' ); $plot->SetYLabel( 'temperature (K)' ); $plot->SetLegend( array('top', 'bottom') ); $plot->SetLegendUseShapes(true); $plot->SetLegendPosition(1, 0, 'plot', 1, 0, 12, -23); $plot->TuneYAutoRange(0.7); # Make sure Y axis starts at 0: //$plot->SetPlotAreaWorld(NULL, 0, NULL, NULL); $plot->SetPrintImage(false); $plot->DrawGraph(); ?>