wiki:GraphvizPlugin

Version 19 (modified by Peter Kropf, 16 years ago) (diff)

Added notes about Trac 0.10 and 0.11 installations.

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.

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.

Download

Download the zipped source from [download:graphvizplugin 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. If you're only interested in the latest released version of the code, consider using subversion to get the code from http://trac-hacks.org/svn/graphvizplugin/0.11/.

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:

Sample outout from the graphviz plugin.

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:

second example, this time with colour and TracLinks

Recent Changes

18539 by jun66j5 on 2023-04-07 00:08:42
TracGraphviz 1.4.0.4dev: Prepare for development
18538 by jun66j5 on 2023-04-07 00:02:57
TracGraphviz 1.4.0.3: Prepare for release
18525 by jun66j5 on 2023-03-19 14:22:48
Make compatible with Trac 1.5.4 and Python 3, and remove Genshi from dependencies (closes #14173)
(more)

Author/Contributors

Author: pkropf
Contributors:

TagIt(plugin,pkropf,beta,0.9)?

Attachments (6)

Download all attachments as: .zip