#4752: list_plot3d crashes sage with some exact input
-----------------------------------+----------------------------------------
Reporter: mhampton | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-3.4
Component: graphics | Resolution:
Keywords: list_plot3d, graphics |
-----------------------------------+----------------------------------------
Comment (by jkantor):
The segfault problem is because scipy just doesn't like multiple points
with the same x,y coordinates and different z coordinates. The attached
patch fixes that.
{{{
sage: pts =[(-4/5, -2/5, -2/5), (-4/5, -2/5, 2/5), (-4/5, 2/5, -2/5),
(-4/5, 2/5, 2/5), (-2/5, -4/5, -2/5), (-2/5, -4/5, 2/5), (-2/5, -2/5,
-4/5), (-2/5, -2/5, 4/5), (-2/5, 2/5, -4/5), (-2/5, 2/5, 4/5), (-2/5, 4/5,
-2/5), (-2/5, 4/5, 2/5), (2/5, -4/5, -2/5), (2/5, -4/5, 2/5), (2/5, -2/5,
-4/5), (2/5, -2/5, 4/5), (2/5, 2/5, -4/5), (2/5, 2/5, 4/5), (2/5, 4/5,
-2/5), (2/5, 4/5, 2/5), (4/5, -2/5, -2/5), (4/5, -2/5, 2/5), (4/5, 2/5,
-2/5), (4/5, 2/5, 2/5)]
sage: show(list_plot3d(pts))
}}}
I still intend to add the radial basis stuff, but this fixes the segfault
now raises an exception while
{{{
sage: pts =[(-4/5, -2/5, -2/5), (-4/5, -2/5, 2/5), (-4/5, 2/5, -2/5),
(-4/5, 2/5, 2/5), (-2/5, -4/5, -2/5), (-2/5, -4/5, 2/5), (-2/5, -2/5,
-4/5), (-2/5, -2/5, 4/5), (-2/5, 2/5, -4/5), (-2/5, 2/5, 4/5), (-2/5, 4/5,
-2/5), (-2/5, 4/5, 2/5), (2/5, -4/5, -2/5), (2/5, -4/5, 2/5), (2/5, -2/5,
-4/5), (2/5, -2/5, 4/5), (2/5, 2/5, -4/5), (2/5, 2/5, 4/5), (2/5, 4/5,
-2/5), (2/5, 4/5, 2/5), (4/5, -2/5, -2/5), (4/5, -2/5, 2/5), (4/5, 2/5,
-2/5), (4/5, 2/5, 2/5)]
sage: pts=[a in pts if a[2]>0]
sage: show(list_plot3d(pts))
}}}
works.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4752#comment:3>
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
-~----------~----~----~----~------~----~------~--~---