#!/usr/bin/perl -w
use strict;
use Chart::Gnuplot;
# Chart object
my $chart = Chart::Gnuplot->new(
output => "plotStyle_4.png",
);
# Boxes
my $boxes = Chart::Gnuplot::DataSet->new(
func => "cos(x)",
style => "boxes",
);
# Plot the graph
$chart->plot2d($boxes);