#10723: Implement edge-by-edge options for latexing graphs with dot2tex
---------------------------------+------------------------------------------
Reporter: nthiery | Owner: nthiery
Type: enhancement | Status: needs_info
Priority: major | Milestone: sage-4.7
Component: graph theory | Keywords: graph, latex, dot2tex
Author: Nicolas M. ThiƩry | Upstream: N/A
Reviewer: Rob Beezer | Merged:
Work_issues: |
---------------------------------+------------------------------------------
Changes (by rbeezer):
* status: needs_review => needs_info
Comment:
I have the dot2tex-2.8.7-2 spkg installed.
I have a system-wide graphviz installed, but the Sage graphviz package
won't build:
{{{
make[3]: *** No rule to make target
`../../plugin/pango/libgvplugin_pango.la', needed by `dot_builtins'.
Stop.
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/dot_builtins.Tpo .deps/dot_builtins.Po
mv -f .deps/no_demand_loading.Tpo .deps/no_demand_loading.Po
mv -f .deps/dot.Tpo .deps/dot.Po
make[3]: Leaving directory
`/sage/dev/spkg/build/graphviz-2.16.1.p0/src/cmd/dot'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/sage/dev/spkg/build/graphviz-2.16.1.p0/src/cmd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sage/dev/spkg/build/graphviz-2.16.1.p0/src'
make: *** [all] Error 2
Error building Graphviz
}}}
In this state, I get just a few failures using
{{{
sage -tp 9 -only-optional "dot2tex" sage/graphs
}}}
that start with errors below. What am I doing wrong?
Rob
{{{
sage -t -only-optional sage/graphs/generic_graph.py
ERROR Failed to process input
Traceback (most recent call last):
File "/sage/dev/local/lib/python/site-packages/dot2tex/dot2tex.py", line
2928, in main
s = conv.convert(dotdata)
File "/sage/dev/local/lib/python/site-packages/dot2tex/dot2tex.py", line
848, in convert
return self.output()
File "/sage/dev/local/lib/python/site-packages/dot2tex/dot2tex.py", line
2566, in output
positions[node.name] = map(int, pos.split(','))
ValueError: invalid literal for int() with base 10: '87.137'
ERROR Failed to process input
Traceback (most recent call last):
File "/sage/dev/local/lib/python/site-packages/dot2tex/dot2tex.py", line
2928, in main
s = conv.convert(dotdata)
File "/sage/dev/local/lib/python/site-packages/dot2tex/dot2tex.py", line
848, in convert
return self.output()
File "/sage/dev/local/lib/python/site-packages/dot2tex/dot2tex.py", line
2566, in output
positions[node.name] = map(int, pos.split(','))
ValueError: invalid literal for int() with base 10: '239.56'
**********************************************************************
File "/sage/dev/devel/sage-main/sage/graphs/generic_graph.py", line 12702:
sage: g.plot(layout = "graphviz", prog = "neato") # optional -
dot2tex, graphviz
Exception raised:
Traceback (most recent call last):
File "/sage/dev/local/bin/ncadoctest.py", line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/sage/dev/local/bin/sagedoctest.py", line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/sage/dev/local/bin/ncadoctest.py", line 1172, in
run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_0[6]>", line 1, in <module>
g.plot(layout = "graphviz", prog = "neato") # optional - dot2tex,
graphviz###line 12702:
sage: g.plot(layout = "graphviz", prog = "neato") # optional -
dot2tex, graphviz
File "/sage/dev/local/lib/python/site-
packages/sage/misc/decorators.py", line 432, in wrapper
return func(*args, **options)
File "/sage/dev/local/lib/python/site-
packages/sage/graphs/generic_graph.py", line 13078, in plot
return GraphPlot(graph=self, options=options).plot()
File "/sage/dev/local/lib/python/site-
packages/sage/graphs/graph_plot.py", line 95, in __init__
self.set_pos()
File "/sage/dev/local/lib/python/site-
packages/sage/graphs/graph_plot.py", line 141, in set_pos
self._pos = self._graph.layout(**self._options)
File "/sage/dev/local/lib/python/site-
packages/sage/graphs/generic_graph.py", line 12425, in layout
pos = getattr(self, "layout_%s"%layout)(dim = dim, **options)
File "/sage/dev/local/lib/python/site-
packages/sage/graphs/generic_graph.py", line 12732, in layout_graphviz
return dict( (key_to_vertex[key], pos) for (key, pos) in
positions.iteritems() )
AttributeError: 'str' object has no attribute 'iteritems'
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10723#comment:13>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.