From: John H. <jd...@gm...> - 2011-04-15 20:54:52
|
On Fri, Apr 15, 2011 at 3:42 PM, Benjamin Root <ben...@ou...> wrote: > > There might be a possible work-around, though. Maybe (and I am just > speculating here) if we can get the core part of matplotlib to specially > treat 3d collection objects in such a way that allows the collection to > return provide elements and z-order pairs. It is either that, or we finally > try to get OpenGL working again in matplotlib and allow ourselves to specify > coordinates in 3-D. > > It should be fairly easy to get a collections object to support multiple z-orders *within* the collection. Across artists, damn near impossible. I don't think you need to provide elements and z-order pairs per-se. The typical way a property is specified for a collection if you want it to vary over the elements of the collection is that the property is a sequence, and the property is accessed as prop[i%N] where i is the element number and N is the length of the property vector. So if we make zorder a len(elements) sequence of z-orders, we can order the collection by the zorder at draw time. Presumably external code would modify the zorder of the collection before each draw depending on the view. |