On Tue, Sep 23, 2008 at 2:15 PM, John H Palmieri <[EMAIL PROTECTED]> wrote: > > Is the following a bug? I don't really know what 'adaptive=True' means > -- the documentation isn't very helpful -- so maybe it's not supposed > to work for functions like this... > > def g(x,y): > if y <= 0 or y >= x**2: > return 0 > else: > return 1 > > Then > plot3d(g, (-3, 3), (-3, 3), adaptive=True) > fails, with the message > > 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
I consider that a bug. Please create a trac ticket. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---