This is the same as the previous plot type (Example 5.16, “Thin Bar Line”) except the lines are wider. This now looks more like a bar chart.
Example 5.17. Thin Bar Line Plot, Wider Lines

<?php
# PHPlot Example: thinbarline plot, wider
require_once 'phplot.php';
# To get repeatable results with 'random' data:
srand(1);
# Make some noisy data:
$data = array();
for ($i = 0; $i < 100; $i++)
  $data[] = array('', $i / 4.0 + 2.0 + rand(-20, 20) / 10.0);
$plot = new PHPlot(800, 600);
$plot->SetImageBorderType('plain');
$plot->SetPlotType('thinbarline');
$plot->SetDataType('text-data');
$plot->SetDataValues($data);
# Main plot title:
$plot->SetTitle('Noisy Data (thinbarline, wider)');
# Make the lines wider:
$plot->SetLineWidths(3);
$plot->DrawGraph();