dot import problems?
Mike Lutz
milutz at avalon.net
Thu Jan 16 22:46:01 PST 2003
Hi all!
Is anyone out there importing dot files into omnigraffle?
I just stumbled onto GraphViz from AT&T research (Which is a directed
graphing tool and file format called "dot") and found that it is quite
cool stuff. (The main site for it is -
http://www.research.att.com/sw/tools/graphviz) (An OSX port of the AT&T
tools are at - http://www.phil.uu.nl/~js/graphviz/)
I've been building dot files and running them through the AT&T tools.
The graphs I have been making use the tag "constraint=false". AT&Ts
dot program does what I expect but omnigraffle seems like its ignoring
the tag.
Here is the dot file I'm having OmniGraffle import:
digraph blah {
this -> 1.1;
this -> 1.2;
this -> 1.3;
node [fontsize=10];
this -> three [fontsize=10];
three-> tree [fontsize=10];
tree -> that [fontsize=10];
blah -> dang [fontsize=10];
1.1 -> 1.2 -> 1.3 [constraint=false, dir=both];
1.1 -> {2.1; 2.2; 2.3} [dir=both];
1.2 -> {2.1; 2.2; 2.3} [dir=both];
1.3 -> {2.1; 2.2; 2.3} [dir=both];
2.1 -> 2.2 -> 2.3 [constraint=false, dir=both];
3.1 [fontsize=28,shape=box];
3.1 -> 3.2 -> 3.3 [constraint=false, dir=both];
2.1 -> { 3.1; 3.2; 3.3} [dir=both];
2.2 -> { 3.1; 3.2; 3.3} [dir=both];
2.3 -> { 3.1; 3.2; 3.3} [dir=both];
}
If you go to http://arthur.avalon.net/~milutz/blah4.pdf you can see
what this looks like if it is rendered with AT&Ts tool. If you paste
the above dot code in a text file and open it with omnigraffle (or pull
it from http://arthur.avalon.net/~milutz/blah4.dot.txt) then you can
see how it doesn't make a nice square out of the #.# elements in the
same way as AT&T's (see blah4.pdf).
As I said above, I think omnigraffle is ignoring the "constraint=false"
tag (seems to ignore "fontsize" and "dir" as well) so I built a dot
file with out "constraint=false" and rendered it with the AT&T tools
(http://arthur.avalon.net/~milutz/blah5.pdf and
http://arthur.avalon.net/~milutz/blah5.dot.txt). Its not perfectly the
same but it is very close to what omnigraffle is doing.
Does anyone out there in mailing-list-land have any more info on the
dot support inside of omnigraffle (which tag are supported)? Omnigroup
folks, do you have any plans on updating the dot support? Anyone have a
way to make a dot file render like the blah4.pdf file in omnigraffle?
Thanks!
-Mike
More information about the OmniGraffle-Users
mailing list