Z channel

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

···

On Thu, Sep 16, 2010 at 12:03 AM, Daπid <davidmenhur@…83…287…> 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.

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. :wink:

···

On Thu, Sep 16, 2010 at 5:12 PM, Benjamin Root <ben.root@...1304...> wrote:

On Thu, Sep 16, 2010 at 12:03 AM, Daπid <davidmenhur@...287...> 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

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. :wink:

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 Sep 16, 2010, at 12:06 PM, Daπid wrote:

On Thu, Sep 16, 2010 at 5:12 PM, Benjamin Root <ben.root@...1304...> wrote:

On Thu, Sep 16, 2010 at 12:03 AM, Daπid <davidmenhur@...287...> 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
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

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

···

On Thu, Sep 16, 2010 at 11:06 AM, Daπid <davidmenhur@...287...> 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. :wink:

--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma