On 3/25/11 3:02 AM, Jeroen Demeyer wrote:
Hello sage-support,
Is there way to change the *order* that objects from a Graphics object
are plotted (i.e. the Z-order)? Consider the following code in the
notebook for a 2D plot::
p1 = plot(sin, 0, 10, thickness=10, color='green')
p2 = polygon([(0,0), (10,0), (10,1), (0,1)], color='gray')
p3 = point((0,0), size=500)
When plotting p1+p2+p3 or p3+p2+p1 or whatever order, it seems that p3
is painted first, then p2 on top of that, then p3 on top of that.
So it seems that there is no way to plot a point inside a polygon,
because the polygon will always obscure the point.
You should be able to use the zorder parameter. If that doesn't work,
it's a bug.
Relevant bug report: http://trac.sagemath.org/sage_trac/ticket/6249
Jason
--
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-support
URL: http://www.sagemath.org