#14798: Export graphics objects to PGF/TikZ
-------------------------------------+-------------------------------------
Reporter: etn40ff | Owner: jason, was
Type: enhancement | Status: needs_work
Priority: minor | Milestone: sage-7.1
Component: graphics | Resolution:
Keywords: matplotlib, plot, | Merged in:
TikZ, days49 | Reviewers: Frédéric Chapoton
Authors: Salvatore Stella | Work issues:
Report Upstream: Completely fixed; | Commit:
Fix reported upstream | 78202777d556147b6dd1a6166e69420535a89772
Branch: | Stopgaps:
public/ticket/14798 |
Dependencies: #19988 |
-------------------------------------+-------------------------------------
Changes (by vbraun):
* status: positive_review => needs_work
Comment:
{{{
sage -t --long src/sage/repl/rich_output/pretty_print.py
**********************************************************************
File "src/sage/repl/rich_output/pretty_print.py", line 224, in
sage.repl.rich_output.pretty_print.pretty_print
Failed example:
pretty_print(ZZ, 123, plt) # latex output
Exception raised:
Traceback (most recent call last):
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 496, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.repl.rich_output.pretty_print.pretty_print[7]>",
line 1, in <module>
pretty_print(ZZ, Integer(123), plt) # latex output
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/repl/rich_output/pretty_print.py", line 247, in pretty_print
SequencePrettyPrinter(*args, **kwds).pretty_print()
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/repl/rich_output/pretty_print.py", line 161, in pretty_print
get_display_manager().display_immediately(args, **kwds)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/repl/rich_output/display_manager.py", line 791, in
display_immediately
plain_text, rich_output = self._rich_output_formatter(obj,
rich_repr_kwds)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/repl/rich_output/display_manager.py", line 633, in
_rich_output_formatter
obj, plain_text=plain_text, **rich_repr_kwds)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/repl/rich_output/display_manager.py", line 535, in
_preferred_text_formatter
out = self._backend.latex_formatter(obj, **kwds)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/repl/rich_output/backend_base.py", line 481, in
latex_formatter
mathjax = MathJax().eval(obj, mode='plain', combine_all=True)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/misc/latex.py", line 1950, in eval
x = latex(x, combine_all=combine_all)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/misc/latex.py", line 924, in __call__
return LatexExpr(f(x, combine_all=combine_all))
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/misc/latex.py", line 207, in tuple_function
return " ".join([latex(v) for v in x])
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/misc/latex.py", line 920, in __call__
return LatexExpr(x._latex_())
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/plot/graphics.py", line 3266, in _latex_
self.save(filename=tmpfilename, **kwds)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/misc/decorators.py", line 471, in wrapper
return func(*args, **kwds)
File "/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/plot/graphics.py", line 3199, in save
raise ValueError("Matplotlib requires either xelatex, "
ValueError: Matplotlib requires either xelatex, lualatex, or pdflatex.
**********************************************************************
1 item had failures:
1 of 10 in sage.repl.rich_output.pretty_print.pretty_print
[33 tests, 1 failure, 4.00 s]
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/14798#comment:46>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.