#7981: animate ignores options to show that are passed up from the plot command
---------------------------+------------------------------------------------
Reporter: jason | Owner: was
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.3.1
Component: graphics | Keywords:
Author: Jason Grout | Upstream: N/A
Reviewer: Tim Dumol | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Changes (by timdumol):
* status: needs_review => needs_work
* reviewer: => Tim Dumol
Comment:
Doctesting on plot.py results in 2 errors:
{{[
sage -t "devel/sage-ref/sage/plot/plot.py"
--leak-resolution=high --log-socket=127.0.0.1 --leak-check=full --num-
callers=25
--suppressions=/opt/sage-4.3.rc0.O0/local/lib/valgrind/sage.supp
**********************************************************************
File "/home/timdumol/sage-4.3.1.alpha0/devel/sage-ref/sage/plot/plot.py",
line 1925:
sage: c.show(figsize=[5,5], xmin=-1, xmax=3, ymin=-1, ymax=3)
sage: point((-1,1),pointsize=30, color='red')
Exception raised:
Traceback (most recent call last):
File "/home/timdumol/sage-4.3.1.alpha0/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/timdumol/sage-4.3.1.alpha0/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/timdumol/sage-4.3.1.alpha0/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_37[5]>", line 1
c.show(figsize=[Integer(5),Integer(5)], xmin=-Integer(1),
xmax=Integer(3), ymin=-Integer(1), ymax=Integer(3))
sage: point((-Integer(1),Integer(1)),pointsize=Integer(30),
color='red')###line 1925:
sage: c.show(figsize=[5,5], xmin=-1, xmax=3, ymin=-1, ymax=3)
sage: point((-1,1),pointsize=30, color='red')
^
SyntaxError: invalid syntax
**********************************************************************
File "/home/timdumol/sage-4.3.1.alpha0/devel/sage-ref/sage/plot/plot.py",
line 1930:
sage: c.save(DOCTEST_MODE_FILE)
Exception raised:
Traceback (most recent call last):
File "/home/timdumol/sage-4.3.1.alpha0/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/timdumol/sage-4.3.1.alpha0/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/timdumol/sage-4.3.1.alpha0/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_37[7]>", line 1, in <module>
c.save(DOCTEST_MODE_FILE)###line 1930:
sage: c.save(DOCTEST_MODE_FILE)
NameError: name 'DOCTEST_MODE_FILE' is not defined
**********************************************************************
1 items had failures:
2 of 8 in __main__.example_37
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7981#comment:7>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.