User Tools

Site Tools


wonham:gantt.py

A Python script for drawing Gantt charts with Gnuplot

Info

Shameless copy-paste of the readme 8-)

gantt.py is simple Python script that translates simulation output into GNUplot commands that draw a Gantt chart. Requires Python 2.4 or newer.

INPUT

In the simulation output, each tab-separated line represents the execution of a task on a resource:

resource start-time end-time task

USAGE

gantt.py translates these lines into a set of GNUplot commands, when called like this:

python gantt.py -o foo.gpl foo.txt

The resulting foo.gpl can be processed by GNUplot as follows:

set terminal postscript eps color solid

set output “foo.eps”

load “foo.gpl”

unset output

GNUplot version 4.2 or newer is required.

COLORS

gantt.py uses a default color set, but the --color option also allows to specify your own colors. Furthermore, palette.dat files can be used in GNUplot to change the default palette.

EXAMPLES

See the examples how to generate appropriate input, and create figures with multiple plots.

DISCLAIMER

Your mileage may vary.

Example

:wonham:gantt-var1.gif

Download

wonham/gantt.py.txt · Last modified: Friday, 10 January 2014 : 10:16:38 by dhendriks