1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use Chart::Gnuplot;
# Data
my @x = (-10 .. 10);
my @y = (0 .. 20);
# Create chart object and specify the properties of the chart
my $chart = Chart::Gnuplot->new(
output => "fig/simple.png",
title => "Simple testing",
xlabel => "My x-axis label",
ylabel => "My y-axis label",
gnuplot => ".../lib/gnuplot/bin/wgnuplot.exe",
);
# Create dataset object and specify the properties of the dataset
my $dataSet = Chart::Gnuplot::DataSet->new(
xdata => \@x,
ydata => \@y,
title => "Plotting a line from Perl arrays",
style => "linespoints",
);
$chart->plot2d($dataSet);
util.c: No such file or directory
$chart->plot2d($dataSet);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use Chart::Gnuplot;
# Data
my @x = (1,2,3,4,5,6,7,8,9);
my @y = (1,2,3,4,5,6,7,8,9);
# Create chart object and specify the properties of the chart
my $chart = Chart::Gnuplot->new(
output => "C:/Users/Marco/Desktop/simple.jpg",
# title => "Simple testing",
# xlabel => "My x-axis label",
# ylabel => "My y-axis label",
/bin/wgnuplot.exe",
);
# Create dataset object and specify the properties of the dataset
my $dataSet = Chart::Gnuplot::DataSet->new(
xdata => \@x,
ydata => \@y,
# title => "Plotting a line from Perl arrays",
# style => "linespoints",
);
# Plot the data set on the chart
$chart->plot2d($dataSet);
2015-07-16T18:43:47 hummerCode: (dl )1
2
3
4
5
6
7my $chart = Chart::Gnuplot->new(
output => "C:/Users/Marco/Desktop/simple.jpg",
# title => "Simple testing",
# xlabel => "My x-axis label",
# ylabel => "My y-axis label",
/bin/wgnuplot.exe",
);
output => "fig/simple.jpg",
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use Chart::Gnuplot;
# Data
my @x = (1,2,3,4,5,6,7,8,9);
my @y = (1,2,3,4,5,6,7,8,9);
mkdir "fig";
# Create chart object and specify the properties of the chart
my $chart = Chart::Gnuplot->new(
output => "fig/simple.png",
# title => "Simple testing",
# xlabel => "My x-axis label",
# ylabel => "My y-axis label",
gnuplot => "C:/Users/.../gnuplot423/bin/wgnuplot.exe",
convert => "C:/Users/.../lib/convert.exe",
terminal => "png",
);
# $chart->convert('png');
# Create dataset object and specify the properties of the dataset
my $dataSet = Chart::Gnuplot::DataSet->new(
xdata => \@x,
ydata => \@y,
# title => "Plotting a line from Perl arrays",
# style => "linespoints",
);
# Plot the data set on the chart
$chart->plot2d($dataSet);
2015-07-17T08:11:39 GwenDragonJa - konkret "from ImageMagick-6.5.9-6".Was für ein convert.exe ist das?
Aus ImageMagicks Tools?