I am trying to get the graphviz plugin working nicely. I can use it to generate graphs nicely *but* I can't get them anti-alised in dokuwiki.
For instance from the command line I can execute:
dot graphFile -Tpng -oRenderedGraph.png
and the file RenderedGraph.png will appear anti-aliased if I load it up in e.g. preview on the mac. However even after setting the path /usr/bin/dot in the configuration settings and restarting the server I can't get the graphs to render correctly via dokuwiki (they are jaggie). I installed graphviz via:
apt-get install graphviz
on our debian wheezy instance (Debian 3.2.54-2 x86_64)
I am not sure if this latest version of graphviz includes the correct libraries or not for cairo. I have looked around and I suspect it is now built in to graphviz, since when I installed graphviz I saw the following:
root@wiki:~# apt-get install graphviz
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
fontconfig fontconfig-config fonts-liberation libcairo2 libcdt4 libcgraph5
libdatrie1 libfontconfig1 libgd2-noxpm libgraph4 libgvc5 libgvpr1 libice6
libjpeg8 libltdl7 libpango1.0-0 libpathplan4 libpixman-1-0 libpng12-0 libsm6
libthai-data libthai0 libxaw7 libxcb-render0 libxcb-shm0 libxdot4 libxft2
libxmu6 libxpm4 libxrender1 libxt6 ttf-dejavu-core ttf-liberation x11-common
...
so it includes libcairo2.
For full information the version of graphviz I have installed is the following one:
root@wiki:~# dpkg -s graphviz
Package: graphviz
Status: install ok installed
Priority: optional
Section: graphics
Installed-Size: 871
Maintainer: David Claughton <dave@eclecticdave.com>
Architecture: amd64
Version: 2.26.3-14+deb7u2
Depends: libc6 (>= 2.7), libcdt4, libcgraph5, libexpat1 (>= 2.0.1), libgd2-noxpm (>= 2.0.36~rc1~dfsg) | libgd2-xpm (>= 2.0.36~rc1~dfsg), libgraph4, libgvc5, libgvpr1, libx11-6, libxaw7, libxmu6, libxt6
Recommends: ttf-liberation
Suggests: gsfonts, graphviz-doc
Conflicts: gdtclft
Description: rich set of graph drawing tools
Graph drawing addresses the problem of visualizing structural information
by constructing geometric representations of abstract graphs and networks.
Automatic generation of graph drawings has important applications in key
technologies such as database design, software engineering, VLSI and
network design and visual interfaces in other domains. Situations where
these tools might be particularly useful include:
.
* you would like to restructure a program and first need to understand
the relationships between its types, procedures, and source files
* you need to find the bottlenecks in an Internet backbone - not only
individual links, but their relationships
* you're debugging a protocol or microarchitecture represented as a
finite state machine and need to figure out how a certain
error state arises
* you would like to browse a database schema, knowledge base, or
distributed program represented graphically
* you would like to see an overview of a collection of linked documents
* you would like to discover patterns and communities of interest in a
database of telephone calls or e-mail messages
.
This package contains the command-line tools.
Homepage: http://www.graphviz.org/
Any hints on how to get nicely rendered graphs?
Thanks in advance!