#!/usr/bin/perl

use warnings;
use Chart::Gnuplot;

# Create chart object and specify the properties of the chart
my $chart = Chart::Gnuplot->new(
	 gnuplot => 'e:\apps\gnuplot\bin\wgnuplot.exe',
	 output => 'cgtest.gif',
	 terminal => "gif transparent",
);

my @xy = (
	[1.1, -3],
	[1.2, -2],
	[3.5, 0]
);

# Create dataset object and specify the properties of the dataset
my $dataSet = Chart::Gnuplot::DataSet->new(
	points => \@xy
#    func => "20*sin(x)"
);

# Plot the data set on the chart
$chart->plot2d($dataSet);


