#8433: plot3d for tachyon hangs
---------------------------------------------+------------------------------
Reporter: robert.marik | Owner: was
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.6.1
Component: graphics | Keywords:
Author: Robert Mařík, Minh Van Nguyen | Upstream: N/A
Reviewer: Jeroen Demeyer | Merged:
Work_issues: |
---------------------------------------------+------------------------------
Comment(by jason):
Possibly for another ticket, but notice this:
{{{
sage: var('y')
sage:
B=plot3d(sqrt(sin(x)*sin(y)),(x,-2*pi,2*pi),(y,-2*pi,2*pi),viewer='tachyon',adaptive=True)
---------------------------------------------------------------------------
ValueError Traceback (most recent call
last)
/Users/grout/<ipython console> in <module>()
/Users/grout/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/plot3d.pyc in plot3d(f, urange, vrange,
adaptive, transformation, **kwds)
684 raise ValueError, 'unknown transformation type'
685 elif adaptive:
--> 686 P = plot3d_adaptive(f, urange, vrange, **kwds)
687 else:
688 u=fast_float_arg(0)
/Users/grout/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/plot3d.pyc in plot3d_adaptive(f, x_range,
y_range, color, grad_f, max_bend, max_depth, initial_depth, num_colors,
**kwds)
775 else:
776 span = (len(texture)-1) / (max_z - min_z) # max
to avoid dividing by 0
--> 777 parts = P.partition(lambda x,y,z: int((z-min_z)*span))
778 all = []
779 for k, G in parts.iteritems():
/Users/grout/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/index_face_set.so in
sage.plot.plot3d.index_face_set.IndexFaceSet.partition
(sage/plot/plot3d/index_face_set.c:6081)()
/Users/grout/sage/local/lib/python2.6/site-
packages/sage/plot/plot3d/plot3d.pyc in <lambda>(x, y, z)
775 else:
776 span = (len(texture)-1) / (max_z - min_z) # max
to avoid dividing by 0
--> 777 parts = P.partition(lambda x,y,z: int((z-min_z)*span))
778 all = []
779 for k, G in parts.iteritems():
ValueError: cannot convert float NaN to integer
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8433#comment:17>
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.