On 2/24/14 1:22 AM, P Purkayastha wrote:
On 02/24/2014 01:55 AM, Robert Lipshitz wrote:
Hi,
When I add a 3d plot to a polyhedron plot, it doesn't just return a
new plot object but also changes the polyhedron plot. On the other
hand, adding two 3d plots does not change either of them. For example:
sage: x = var('x')
sage: y = var('y')
sage: plot1 = plot3d(x^2+y^2,(x,-2,2),(y,-2,2))
sage: plot2 = plot3d(x^2-y^2, (x,-2,2), (y,-2,2))
sage: plot3 = plot3 = Polyhedron(vertices =
list(Permutations(3))).plot() #A hexagon in 3-space (the 2d
permutohedron)
sage: plot4 = plot3+plot1
sage: plot5 = plot2+plot1
After this, plot2 has not changed, but plot3 is now the union of a
hexagon and a paraboloid. Check it:
sage: plot2
sage: plot4
I assume this is a bug, but thought I would check before reporting it
to trac. Is this desired behavior?
(I'm using Sage 6.1.1.)
Thanks,
Robert
This is known: http://trac.sagemath.org/ticket/13288
And a preliminary patch is up at http://trac.sagemath.org/ticket/9089
Volunteers are more than welcome to update the patches at #9089 or write
new patches, of course!
Jason
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.