#4182: plot3d fails with 'IndexError: list index out of range'
------------------------+---------------------------------------------------
Reporter: jhpalmieri | Owner: was
Type: defect | Status: new
Priority: minor | Milestone: sage-3.1.3
Component: graphics | Keywords:
------------------------+---------------------------------------------------
{{{
sage: def g(x,y):
... if y <= 0 or y >= x**2:
... return 0
... else:
... return 1
sage: plot3d(g, (-3, 3), (-3, 3), adaptive=True)
}}}
fails, returning
{{{
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/palmieri/.sage/sage_notebook/worksheets/admin/37/code/
7.py", line 6, in <module>
plot3d(g, (-Integer(3), Integer(3)), (-Integer(3), Integer(3)),
adaptive=True)
File "/usr/local/share/sage/local/lib/python2.5/site-packages/
SQLAlchemy-0.4.6-py2.5.egg/", line 1, in <module>
File "/home/palmieri/Documents/sage-3.1.2/local/lib/python2.5/site-
packages/sage/plot/plot3d/plot3d.py", line 157, in plot3d
P = plot3d_adaptive(f, urange, vrange, **kwds)
File "/home/palmieri/Documents/sage-3.1.2/local/lib/python2.5/site-
packages/sage/plot/plot3d/plot3d.py", line 255, in plot3d_adaptive
G.set_texture(texture[k], opacity=opacity)
IndexError: list index out of range
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4182>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---