#14594: Make dot2tex work with matplotlib 1.2.x (as well as older versions)
------------------------------------------+---------------------------------
Reporter: aschilling | Owner: sage-combinat
Type: defect | Status: needs_info
Priority: critical | Milestone: sage-5.10
Component: packages: optional | Resolution:
Keywords: dot2tex spkg pyparsing | Work issues: Update `SPKG.txt`,
add `src/` to `.hgignore`, probably remove upstream history
Report Upstream: N/A | Reviewers: Travis Scrimshaw
Authors: Leif Leonhardy | Merged in:
Dependencies: | Stopgaps:
------------------------------------------+---------------------------------
Comment (by leif):
Doctesting the Sage library (5.10.beta3) with `sage -t --long
--optional=dot2tex ...`, I get:
{{{
----------------------------------------------------------------------
sage -t --long
devel/sage/sage/combinat/rigged_configurations/kleber_tree.py # 1 doctest
failed
sage -t --long devel/sage/sage/categories/crystals.py # 2 doctests failed
sage -t --long devel/sage/sage/graphs/digraph.py # 1 doctest failed
sage -t --long devel/sage/sage/graphs/generic_graph.py # 43 doctests
failed
sage -t --long devel/sage/sage/graphs/graph.py # 5 doctests failed
sage -t --long devel/sage/sage/graphs/graph_latex.py # 3 doctests failed
----------------------------------------------------------------------
}}}
Most of these presumably due to wrong tagging (`NameError: name 'foo' is
not defined`).
With `--optional=dot2tex,sage` in contrast, only the following doctest
error:
{{{
**********************************************************************
File "devel/sage/sage/combinat/rigged_configurations/kleber_tree.py", line
387, in sage.combinat.rigged_configurations.kleber_tree.KleberTree._latex_
Failed example:
KT._latex_() #optional - dot2tex
Expected nothing
Got:
'\n\\begin{tikzpicture}[>=latex,line join=bevel,]\n%%\n\\node
(Klebertreenodewithweight1+0+0andupwardsedgeroot0+1+0) at (13bp,82bp)
[draw,draw=none] {$V_{\\omega_{1}}$};\n \\node
(Klebertreenodewithweight0+2+0andupwardsedgeroot0+0+0) at (13bp,8bp)
[draw,draw=none] {$V_{2\\omega_{2}}$};\n \\draw [black,->]
(Klebertreenodewithweight1+0+0andupwardsedgeroot0+1+0) ..controls
(13bp,63bp) and (13bp,42bp) ..
(Klebertreenodewithweight0+2+0andupwardsedgeroot0+0+0);\n
\\pgfsetstrokecolor{black}\n \\draw (35bp,45bp) node {$\\left(0, 1,
0\\right)$};\n%\n\\end{tikzpicture}\n'
**********************************************************************
1 item had failures:
1 of 3 in
sage.combinat.rigged_configurations.kleber_tree.KleberTree._latex_
}}}
:-)
[[BR]]
It seems there are no dot2tex-optional tests in the documentation
(`*.rst`):
{{{
Doctesting 3 files.
sage -t --long
devel/sage/doc/en/thematic_tutorials/lie/affine_hw_crystals.rst
[0 tests, 0.00 s]
sage -t --long
devel/sage/doc/en/thematic_tutorials/lie/affine_finite_crystals.rst
[0 tests, 0.02 s]
sage -t --long devel/sage/doc/en/thematic_tutorials/lie/crystals.rst
[0 tests, 0.03 s]
----------------------------------------------------------------------
All tests passed!
----------------------------------------------------------------------
}}}
But, ooops, just noticed they're tagged `# optional - dot2tex
graphviz`...[[BR]]
Same problem without adding `sage` to the `--optional` list:
{{{
----------------------------------------------------------------------
sage -t --long
devel/sage/doc/en/thematic_tutorials/lie/affine_hw_crystals.rst # 2
doctests failed
sage -t --long
devel/sage/doc/en/thematic_tutorials/lie/affine_finite_crystals.rst # 1
doctest failed
sage -t --long devel/sage/doc/en/thematic_tutorials/lie/crystals.rst # 2
doctests failed
----------------------------------------------------------------------
}}}
Again, with `--optional=dot2tex,graphviz,sage`:
{{{
Doctesting 3 files.
sage -t --long
devel/sage/doc/en/thematic_tutorials/lie/affine_hw_crystals.rst
[14 tests, 17.73 s]
sage -t --long
devel/sage/doc/en/thematic_tutorials/lie/affine_finite_crystals.rst
[97 tests, 22.79 s]
sage -t --long devel/sage/doc/en/thematic_tutorials/lie/crystals.rst
[116 tests, 45.62 s]
----------------------------------------------------------------------
All tests passed!
----------------------------------------------------------------------
}}}
... but I also get five pop-up windows showing `sage.pdf`! XD
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14594#comment:30>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.