Contents
Graphviz Plugin
Description
The GraphvizPlugin allows for the inline creation of diagrams for abstract graphs and networks using the Graphviz programs.
Bugs/Feature Requests
Existing bugs and feature requests for GraphvizPlugin are here.
If you have any issues, create a new ticket. Be sure to mention which version of Trac and which version of the plugin you're using. If the version number ends with '...dev', then please also specify the changeset number corresponding to the version you're using.
Requirements
The programs from http://www.graphviz.org.
Installation
- Install
- By hand:
- See source:graphvizplugin/0.11/README.txt for details on installing the plugin on Trac 0.11.
- See source:graphvizplugin/0.10/README.txt for details on installing the plugin on Trac 0.10.
- Using easy_install:
$ [sudo] easy_install http://trac-hacks.org/svn/graphvizplugin/0.11
- sudo is optional case you already have enough authority to modify your server.
- By hand:
- Restart your web server (this example command line for Apache on Ubuntu).
$ [sudo] /etc/init.d/apache2 restart
- Enable the plugin.
- by updating your trac.ini with this:
[components] ... graphviz.* = enabled ...
- or accessing your Admin panel ( ..admin/general/plugins );
- by updating your trac.ini with this:
- Configure your environment
- by modifiying trac.ini file;
- by accessing your Admin panel case you have WebAdminPlugin enabled;
Source and Download
You can check out the source for GraphvizPlugin from Subversion at http://trac-hacks.org/svn/graphvizplugin.
Or you can download the zipped source from here. Note that this contains everything regarding the Graphviz plugin including tagged releases and branches. The 0.10 directory contains the latest released version of the code for Trac 0.10 and the 0.11 directory contains the latest code for Trac 0.11.
That version has some trouble with rsvg support for creating anti-aliased images. The upcoming version contains a few related fixes:
- download latest unstable version (0.7.6dev) for Trac 0.11
If you want to have anti-aliased images, it might be a better option anyway to get/build a recent version of graphviz tools, which support producing anti-aliased images directly (through pangocairo support).
Example
{{{
#!graphviz
digraph G {Hello->World->Graphviz->Rules}
}}}
would produce an image like:
Note that you can insert TracLinks like this:
{{{
#!graphviz
digraph G {
rankdir = "LR"
GraphvizPlugin [ URL=GraphvizPlugin ]
Trac [
URL="http://trac.edgewall.org/"
fontcolor=red
]
GraphvizPlugin -> Trac
}
}}}
This produces an image like this, but with clickable nodes (note that nodes aren't actually clickable in this example):
More examples at: http://www.graphviz.org/Gallery.php
Recent Changes
[10975] by rjollos on 12/01/11 11:23:47
Added plugin revision info to webadmin page.
[10528] by cboos on 08/02/11 15:07:05
GraphvizPlugin: make retrieval of href attribute from Wiki links more robust in Trac 0.13dev by using find_element (see also #T10199)
[10527] by cboos on 08/02/11 14:42:52
Prepare for 0.13 version of graphviz plugin (need a similar fix as for #T10199)
[5995] by cboos on 06/09/09 10:27:19
GraphvizPlugin: start 0.7.6dev
Author/Contributors
Attachments
- 15e8018d3d66075049024de6864339724b78c365.png (1.6 kB) -
Sample outout from the graphviz plugin.
, added by pkropf on 12/02/05 05:38:59. - bf7ef5a481ccb22c85f25a2da9a84b29d6ccf860.png (1.2 kB) -
second example, this time with colour and TracLinks
, added by diroussel on 01/30/07 14:37:58. - first-example.png (16.4 kB) -
Sample outout from the graphviz plugin, produced with graphviz-2.20.3 with pangocairo support
, added by cboos on 10/13/08 18:58:24. - second-example.png (9.3 kB) -
second example, this time with colour and TracLinks, also produced with graphviz-2.20.3 on Linux
, added by cboos on 10/13/08 18:59:43.



