Version 31 (modified by 9 years ago) (diff) | ,
---|
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
See source:graphvizplugin/0.10/README.txt for details on installing the plugin on Trac 0.10.
See source:graphvizplugin/0.11/README.txt for details on installing the plugin on Trac 0.11.
After installing, don't forget to enable the plugin in your trac.ini, the usual way:
[components] ... graphviz.* = enabled ...
Download
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.
- [download:graphvizplugin/0.11-0.7.5 download] latest stable version (0.7.5) for Trac 0.11
- [download:graphvizplugin/0.10 download] latest version for Trac 0.10
That version has some trouble with rsvg
support for creating anti-aliased images. The upcoming version contains a few related fixes:
- [download:graphvizplugin/0.11 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).
Source
You can check out the source for GraphvizPlugin from Subversion at http://trac-hacks.org/svn/graphvizplugin.
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 the nodes are clickable, unlike here:
Recent Changes
- 16177 by cboos on 2017-01-12 10:36:25
-
GraphViz trunk is now compatible with Trac 1.3dev
It should still work with Trac 1.2 though for now, but if you have trouble,
go with the 1.2 maintenance branch.
- 16176 by cboos on 2017-01-12 10:33:30
-
Create maintenance branch for 1.2, if ever needed (trunk will go Trac 1.3dev)
- 15729 by rjollos on 2016-08-23 01:28:12
-
1.0.0.8: Tag version 1.0.0.8 and bump trunk to 1.0.0.9dev
Fixes #12846.
(more)
Author/Contributors
Attachments (5)
-
15e8018d3d66075049024de6864339724b78c365.png (1.6 KB) - added by 12 years ago.
Sample outout from the graphviz plugin.
-
bf7ef5a481ccb22c85f25a2da9a84b29d6ccf860.png (1.2 KB) - added by 11 years ago.
second example, this time with colour and TracLinks
-
first-example.png (16.4 KB) - added by 10 years ago.
Sample outout from the graphviz plugin, produced with graphviz-2.20.3 with pangocairo support
-
second-example.png (9.3 KB) - added by 10 years ago.
second example, this time with colour and TracLinks, also produced with graphviz-2.20.3 on Linux
-
graphviz_logo.png (3.5 KB) - added by 20 months ago.
Graphviz logo
Download all attachments as: .zip