On Sat, Aug 14, 2010 at 9:22 PM, Nathann Cohen <nathann.co...@gmail.com> wrote:
>> Clarification: Sage's plot code does not "interact" with the GPL
>> incompatible graphviz library in any way.
>
> ?.. So we have a graphviz spkg and absolutely no interface between the two ? 
> O_o

I'm sorry, that's not what I meant.    You can do

  sage: g = graphs.PetersenGraph()
  sage: g.plot(layout='graphviz')

and graphviz would then evidently somehow get used, I guess.   I just
meant that by default Sage's plotting code doesn't use it at all.

I could test the above though, since (not surprisingly) the optional
graphviz spkg fails to install for me (on bog standard OS X 10.6), and
installing graphviz from the web isn't enough because the above
requres dot2tex.

`../../lib/gvc/no_demand_loading.c
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/no_demand_loading.Tpo .deps/no_demand_loading.Po
mv -f .deps/dot.Tpo .deps/dot.Po
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error building Graphviz

---

I tried on sage.math.washington.edu (linux) and the build succeeds, but

 sage: g = graphs.PetersenGraph()
 sage: g.plot(layout='graphviz')

still fails with a "dot2tex" error:

/mnt/usb1/scratch/wstein/build/sage-4.5.2.rc0/local/lib/python2.6/site-packages/sage/graphs/dot2tex_utils.pyc
in assert_have_dot2tex()
     60             raise RuntimeError(check_error_string)
     61     except ImportError:
---> 62         raise RuntimeError(missing_error_string)
     63
     64 def quoted_latex(x):

RuntimeError:
dot2tex not available.

Please see :meth:`sage.graphs.generic_graph.GenericGraph.layout_graphviz`
for installation instructions.

----

I tried installing dot2tex on sage.math.washington.edu (via apt-get),
but the above error stays.
So I have absolutely no clue how to get

g.plot(layout='graphviz')

to actually do anything useful.

On the other hand, one can use the command  g.graphviz_to_file_named(...)
to save a description of g in graphviz format to a file, which one can then
open with Graphviz directly. That works (and is what I illustrated in
my graph talk, which is here: http://sagemath.org/help-video.html).

 -- William

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to