Opened 8 years ago

Last modified 8 years ago

#13713 closed defect

view generates a LaTex (memory?) error on a graph of size 24 — at Version 2

Reported by: slabbe Owned by: tbd
Priority: major Milestone: sage-5.10
Component: graphics Keywords: dot2tex
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by slabbe)

Create this graph:

sage: F = GF(3)
sage: gens = [matrix(F,2,[1,0, 1,1]), matrix(F,2, [1,1, 0,1])]
sage: group = MatrixGroup(gens)
sage: G = group.cayley_graph()

It is not too big:

sage: G
Digraph on 24 vertices

Note that since the vertices of G are matrices, the default format='tkz_graph' does not work. One need to use format='dot2tex'. With dot2tex-2.8.7-2 and graphviz installed, the following work:

sage: G.set_latex_options(format='dot2tex', prog='neato')
sage: view(G)
sage: G.set_latex_options(format='dot2tex', prog='twopi')
sage: view(G)
sage: G.set_latex_options(format='dot2tex', prog='fdp')
sage: view(G)

But not these ones:

sage: G.set_latex_options(format='dot2tex', prog='dot')
sage: view(G)
An error occurred.
LaTex error
sage: G.set_latex_options(format='dot2tex', prog='circo')
sage: view(G)
An error occurred.
LaTex error

I know a workaround which is to use the tikz2pdf script which compiles fine. But, it would be nice if view could compile G as well.

Change History (2)

comment:1 Changed 8 years ago by jhpalmieri

If you run view(G, debug=True), you should get more information about the error.

comment:2 Changed 8 years ago by slabbe

  • Description modified (diff)
Note: See TracTickets for help on using tickets.