Gnuplot task
Gnuplot task
Description
Task to process gnuplot, a portable command-line driven graphing utility (see: gnuplot.info/ ).
Installation
$ apt-get install gnuplot
Gnuplot task parameters
Attribute | Description | Value | Required |
---|---|---|---|
file | The input file | yes | |
tofile | The output file | no: .png by default | |
title | The graph title | no | |
using | The column to use | no | |
xlabel | The x label | no | |
ylabel | The y label | no |
Examples
Generate burndown chart with gnuplot
<project name="gnuplot task">
<taskdef name="gnuplot"
classname="net.sourceforge.ant4x.taskdefs.doc.GnuplotTask"
classpath="PATH/TO/ant4x.jar"/>
<target name="gen-burndownchart-with-gnuplot">
<delete dir="datas/gnuplot"/>
<mkdir dir="datas/gnuplot"/>
<echo file="datas/gnuplot/input.csv" append="false">time;points
0;60
1;50
2;45
3;38
4;32
5;25
6;22
7;18
8;12
9;8
10;3
</echo>
<x:gnuplot file="datas/gnuplot/input.csv" title="Burndown chart" using="1:2 with lines" xlabel="Iterations" ylabel="Effort"/>
</target>
</project>