From: Daπid <dav...@gm...> - 2010-09-16 05:03:33
|
Does MPL support in any way the Z channel? If not, is there any possibility to use it? For example, to create a parallel matrix of the same dimensions of the image with the values of Z in each pixel. Thank you very much. David. |
From: Benjamin R. <ben...@ou...> - 2010-09-16 15:13:24
|
On Thu, Sep 16, 2010 at 12:03 AM, Daπid <dav...@gm...> wrote: > Does MPL support in any way the Z channel? If not, is there any > possibility to use it? For example, to create a parallel matrix of the > same dimensions of the image with the values of Z in each pixel. > > Thank you very much. > > David. > > David, I am not entirely certain I understand what you mean. Perhaps you are speaking of Z-order? Using the zorder kwarg in various plotting commands, I can manually control the order in which elements are rendered. When figures are saved, depending on the file format, this information can get "flattened", and therefore lost, and other formats (most of the vector-based formats) maintain this information, I believe. Does that help? Ben Root |
From: Daπid <dav...@gm...> - 2010-09-16 16:07:17
|
No, it is not. The Z channel is an aditional number per pixel that haves the information of the deepness. When you render an image you can keep this information for adding mist, without rendering again, for example. I don't know if I have been able to explain myself, my mind is not really clear today. ;-) On Thu, Sep 16, 2010 at 5:12 PM, Benjamin Root <ben...@ou...> wrote: > On Thu, Sep 16, 2010 at 12:03 AM, Daπid <dav...@gm...> wrote: >> >> Does MPL support in any way the Z channel? If not, is there any >> possibility to use it? For example, to create a parallel matrix of the >> same dimensions of the image with the values of Z in each pixel. >> >> Thank you very much. >> >> David. >> > > David, I am not entirely certain I understand what you mean. Perhaps you > are speaking of Z-order? Using the zorder kwarg in various plotting > commands, I can manually control the order in which elements are rendered. > When figures are saved, depending on the file format, this information can > get "flattened", and therefore lost, and other formats (most of the > vector-based formats) maintain this information, I believe. > > Does that help? > Ben Root > > |
From: Tony S Yu <ts...@gm...> - 2010-09-16 16:20:48
|
On Sep 16, 2010, at 12:06 PM, Daπid wrote: > No, it is not. The Z channel is an aditional number per pixel that > haves the information of the deepness. When you render an image you > can keep this information for adding mist, without rendering again, > for example. > > I don't know if I have been able to explain myself, my mind is not > really clear today. ;-) Hi David, I'm also having a difficult time understanding what you're after. Your description sounds to me like a normal image plot or pcolor plot; for example, http://matplotlib.sourceforge.net/examples/pylab_examples/image_interp.html http://matplotlib.sourceforge.net/examples/pylab_examples/pcolor_small.html If what you're suggesting is different, then maybe you can link to a picture/plot of what you're after. (Or if you can't find anything, maybe you could draw an example of the plot). Best, -Tony > > On Thu, Sep 16, 2010 at 5:12 PM, Benjamin Root <ben...@ou...> wrote: >> On Thu, Sep 16, 2010 at 12:03 AM, Daπid <dav...@gm...> wrote: >>> >>> Does MPL support in any way the Z channel? If not, is there any >>> possibility to use it? For example, to create a parallel matrix of the >>> same dimensions of the image with the values of Z in each pixel. >>> >>> Thank you very much. >>> >>> David. >>> >> >> David, I am not entirely certain I understand what you mean. Perhaps you >> are speaking of Z-order? Using the zorder kwarg in various plotting >> commands, I can manually control the order in which elements are rendered. >> When figures are saved, depending on the file format, this information can >> get "flattened", and therefore lost, and other formats (most of the >> vector-based formats) maintain this information, I believe. >> >> Does that help? >> Ben Root >> >> > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Ryan M. <rm...@gm...> - 2010-09-16 17:23:00
|
On Thu, Sep 16, 2010 at 11:06 AM, Daπid <dav...@gm...> wrote: > No, it is not. The Z channel is an aditional number per pixel that > haves the information of the deepness. When you render an image you > can keep this information for adding mist, without rendering again, > for example. > > I don't know if I have been able to explain myself, my mind is not > really clear today. ;-) Sounds like you're talking about the equivalent to OpenGL's z-buffer. The only thing matplotlib has is zorder, which controls the drawing order of the artists. Matplotlib is not a true 3D plotting package in the sense of having all of the hardware bells and whistles, so there is no z-buffer. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |