[Other tools] gvmap: Tree nodes can lie outside their »country« when labels are used
Ported Issue from Mantis Original ID: 2262 Reported By: ssp
SEVERITY: MINOR Submitted: 2013-02-23 12:52:01
OS: OS X
OS BUILD: 10.8.2
PLATFORM: MAC
DESCRIPTION
I created a large-ish tree that is processed wit dot. Nodes in the tree are marked with a »cluster« so gvmap can create a map based on that. When not having any labels in the graph, this works perfectly. Once I add the labels which are multiline and have varying widths, the map created by gvmap can have a slight offset in some places, causing the nodes to lie not entirely in their assigned region of the map or
STEPS TO REPRODUCE
I provide four example files at http://earthlingsoft.net/ssp/misc/graphviz/
The working case is »input-simple.gv«, each node only has a small ID there which is used as the label. It gives the correct output file »output-simple.svg« after using
dot input-simple.gv | gvmap -e | dot -Tsvg
The IMO erroneous case is given by »input.gv«. Here the nodes contain larger labels and end up having varying sizes. Running
dot input-simple.gv | gvmap -e | dot -Tsvg
gives the output file »output.svg«. Here some nodes overlap the map boundaries (e.g. 273, 332, 479, 491, …) or lie completely outside their country on the map (e.g. 501, 183).
ADDITIONAL INFORMATION
I am using graphviz 2.30.1 on Mac OS 10.8.2 installed via homebrew.