Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001101graphvizDotpublic2006-04-13 16:422011-04-28 04:03
ReporterHank Dietz 
Assigned Toerg 
PlatformOSx86-Linux-Ubuntu 5.10OS Version
Summary0001101: Node placement changes when labels are used

It is not easy to get things positioned at specific places using dot,
but there seems to be an error in how positions are calculated when a
label appears in a node, causing positions to change with labels that
entirely fit within nodes being enabled. For example, [^]

removing the label="" in line 4 causes node positions to skew.

I am using dot to draw various networks, some of which have physical
layout constraints, and I've not been able to get the positioning to
be consistently independent of what labels are in the nodes. If the
behavior of dot is considered correct, then an example showing how
to get known positions for nodes independent of labeling would be
very much appreciated. For example, how would one draw a 2D array of
nodes that are stable in their positions even if the labels in them
Additional Information

This may just be the way dot is, but a workaround should be given
if that is the case.

[erg] This is not a bug. Dot is designed to take the size of nodes
into account when assigning positions, and node size depends in part
on its label. If you change a label, it's likely the node size will change
and so will its position. There are various workarounds. One is to
set fontcolor=transparent for nodes. The layout will be calculated
as though the labels are there, but they won't be drawn. Another
approach would be to specify a width and height for nodes and set
fixedsize=true. Then the node size will never change.
TagsNo tags attached.
Generate PS myself.
(This is NOT a good fix. ;-)
VERSION     2.2.1
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg

MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker