Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000712graphvizDotty/Lneato/Leftypublic2007-04-28 02:232011-04-28 04:03
ReporterDan 
Assigned Togviz 
PrioritynormalSeveritycriticalReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Unix-FreeBSD 6.2-STABLEOS Version
Summary0000712: pos attribute confuses and is ignored by lneato
Description



When before.dot is opened in lneato, the nodes and edges are invisible.
I know they are there because when I right click on them I get a
different menu to when I click on an area where they are not.
The only way to make them visible is to select "do layout" from the
menu.



Once the graph elements are visible I can drag the nodes into position,
but when I save the graph as after.dot, the position attributes
are missing.



Dotty behaves the same way, so both programs are not very useful.
Additional Information

[erg] I'm not sure about the first problem. It sounds like it might be quirk in X11 on FreeBSD
As for the second problem, using either Save or Save as, I'm seeing the position information
in the output.

I've forwarded this bug to the author of dotty, but meanwhile you
might try using the latest dotty to see if these problems are still there.
<additional_information><![CDATA[

[ek] I think this is because of a change we made where dotty now uses
the extended output format (xdot) to get the drawing information.
if you give it a graph generated in the default format, it'll have
the 'hit' information of where nodes are, but not the drawing info.
there's no simple way to tell if a graph is in dot or xdot format.

so for now, either generate graphs using -Txdot, or have dotty load
the graph without first processing it.

[erg] One can use the xdotversion attribute to check.

[daniel kerse] Sorry for the late response I've been busy with other things. I've downloaded the source and attempted to build for FreeBSD, looks like I might have to spend a bit of time trying to learn how to make it compile (due to my incompetence I suspect). Hopefully I won't end up up waiting for your fix to find its way into the FreeBSD ports tree.

Using the xdot format certainly makes the graph instantly appear on the screen when using lneato or dotty. I'm still having trouble getting the new position information into the file when I hit save (see below for detail of you are interested).

I'm looking forward to trying the new version to see what exactly has changed .

Thanks again,
Dan.
<CD>
$dot -V
dot - Graphviz version 2.12 (Sun Apr 29 05:57:25 UTC 2007)
$dot -Txdot -s -n -o before.xdot before.dot
$grep pos before.xdot
        A [width="1.08", pos="84,162", height="0.50", _draw_="c 5 -black e 84 162 39 18 ", _ldraw_="F 14.000000 11 -Times-Roman c 5 -black T 84 157 0 10 1 -A "];
        1 [shape=box, width="1.03", pos="37,90", height="0.50", _draw_="c 5 -black p 4 74 108 0 108 0 72 74 72 ", _ldraw_="F 14.000000 11 -Times-Roman c 5 -black T 37 85 0 7 1 -1 "];
        2 [shape=box, width="1.08", pos="131,90", height="0.50", _draw_="c 5 -black p 4 170 108 92 108 92 72 170 72 ", _ldraw_="F 14.000000 11 -Times-Roman c 5 -black T 131 85 0 7 1 -2 "];
        B [width="1.08", pos="84,18", height="0.50", _draw_="c 5 -black e 84 18 39 18 ", _ldraw_="F 14.000000 11 -Times-Roman c 5 -black T 84 13 0 9 1 -B "];
        A -- 1 [pos="73,145 66,134 56,119 49,108", _draw_="c 5 -black B 4 73 145 66 134 56 119 49 108 "];
        A -- 2 [pos="95,145 102,134 112,119 119,108", _draw_="c 5 -black B 4 95 145 102 134 112 119 119 108 "];
        1 -- B [pos="49,72 56,61 66,47 73,36", _draw_="c 5 -black B 4 49 72 56 61 66 47 73 36 "];
        2 -- B [pos="119,72 112,61 102,47 95,36", _draw_="c 5 -black B 4 119 72 112 61 102 47 95 36 "];
$dotty before.xdot
dotty.lefty: draw language parser error: 18 <--------------------------------- I get these when it loads the file
dotty.lefty: draw language parser error: 18

(save the file as after.xdot)
$grep pos after.xdot
$
</CD>

TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1123
INPUT-FILEhttp://www.graphviz.org/bugs/b1123.dot [^]
OUTPUT-FILEhttp://www.graphviz.org/bugs/b1123a.dot [^]
STATUS-COMMENTFixed (2 May 2007)
VERSION     2.8
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 => user1


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