On Fri, Sep 25, 2009 at 9:26 AM, Nicolas M. Thiery
<nicolas.thi...@u-psud.fr> wrote:
>        Dear Kjell,
>
> ----- Forwarded message from "Nicolas M. Thiery" <nicolas.thi...@u-psud.fr> 
> -----
> ...
>        http://sage.math.washington.edu/home/nthiery/bruhat-D4.pdf
> ...
> PS: with that, I am very close to getting a nice category graph, but I
> need to chase a bug which will have to wait until I am more awake.
>
> ----- End forwarded message -----
>
> I chased the bug down, and now I would very much appreciate some help!
>
> My goal is to use the autosize feature, using the two passes. Digging
> into dot2tex's script, I came up with the code bellow, which works
> just fine with complicated graphs (like the one linked to above). But
> apparently fails for graphs with simple labels: The example script
> below runs smoothly for dotdata=dotdata2, but fails for
> dotdata=dotdata1.
>
> Ubuntu linux
> graphviz 2.20.2-3ubuntu2
> dot2tex 2.8.6
> pyparsing 1.5.2
> Script run actually under sage, but that should not have much influence.
>
> Any clue ?
>
> Is this how you would recommend calling the converter?
>
> Thanks in advance,
>                                                Nicolas
>
> ------------------------------------------------------------------------------
> dotdata1 = r"""
> digraph {
>    "objects" [label=" ", texlbl="$1$"];
> }
> """
>
> dotdata2 = r"""
> digraph {
>    "objects" [label=" ", texlbl = "$\left(\begin{array}{rr}1 & 0 \\0 & 
> 1\end{array}\right)$"];
> }
> """
>
> dotdata = dotdata1
>
> from dot2tex.dot2tex import Dot2TikZConv
>
> options = {'format':'tikz', 'autosize' : True, 'crop':True, 
> 'usepdflatex':True, 'figonly':True, 'debug':True}
>
> conv = Dot2TikZConv(options)
> dotdata = conv.convert(dotdata)
> conv.dopreproc = False
> print conv.convert(dotdata)
> ------------------------------------------------------------------------------
>
> --
> Nicolas M. Thiéry "Isil" <nthi...@users.sf.net>
> http://Nicolas.Thiery.name/
>

Strange. I don't have access to dot2tex at the moment, but I will
investigate this. Could you send me the dot2tex.log file generated
when running the above examples?

- Kjell Magne Fauske

--~--~---------~--~----~------------~-------~--~----~
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-devel@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