#4815: list_plot3d is broken (segfaults, zero division errors)
----------------------+-----------------------------------------------------
 Reporter:  was       |        Owner:  was     
     Type:  defect    |       Status:  reopened
 Priority:  blocker   |    Milestone:  sage-3.3
Component:  graphics  |   Resolution:          
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by mhansen):

 The patch at #4752 keeps this from segfaulting, etc

 {{{
 sage: version()
 'Sage Version 3.3.rc1, Release Date: 2009-02-16'
 sage: sage: sage: X = list_plot3d([(1,1,1), (1,2,3), (1,2,5), (1,1,1)])
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)

 
/home/mhansen/.sage/temp/sage.math.washington.edu/28849/_home_mhansen__sage_init_sage_0.py
 in <module>()

 /home/mhansen/sage-3.3.alpha0-sage.math-
 only-x86_64-Linux/local/lib/python2.5/site-
 packages/sage/plot/plot3d/list_plot3d.pyc in list_plot3d(v,
 interpolation_type, texture, point_list, **kwds)
     189             return line3d(v, **kwds)
     190         elif isinstance(v[0],tuple) or point_list==True and
 len(v[0]) == 3:
 --> 191             return
 list_plot3d_tuples(v,interpolation_type,texture=texture, **kwds)
     192         else:
     193             return list_plot3d_array_of_arrays(v,
 interpolation_type,texture, **kwds)

 /home/mhansen/sage-3.3.alpha0-sage.math-
 only-x86_64-Linux/local/lib/python2.5/site-
 packages/sage/plot/plot3d/list_plot3d.pyc in list_plot3d_tuples(v,
 interpolation_type, texture, **kwds)
     248             if x[i]==x[j] and y[i]==y[j]:
     249                 if z[i]!=z[j]:
 --> 250                     raise ValueError, "Two points with same x,y
 coordinates and different z coordinates were given. Interpolation cannot
 handle this."
     251                 elif z[i]==z[j]:
     252                     drop_list.append(j)

 ValueError: Two points with same x,y coordinates and different z
 coordinates were given. Interpolation cannot handle this.
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4815#comment:5>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to