Stem 3d

Hello,

I need to plot 2d sequences of two kinds. I wanted them to look like
a stem plot because of other plots that are in the same text.

There are actually two kinds of plots that I need: one is a standard
two-dimensional domain, with points in the domain over a rectangular
grid; the other is a two-variable function of one independent variable:
I need this to plot complex-sequences, with the markers around a
baseline.

If I couldn't make myself clear, the first one is like the image in
the link below:

http://www.mathworks.com/help/techdoc/ref/stem3.html

I couldn't find a link to an image similar to the second kind, though.
But this one is less important, as I can plot real and imaginary parts
in different axes.

I could get something that looked ok using scatter3d. If there is a
way to emulate the stem behaviour using that, I think it is ok. But
I thought that probably there is a better way to do it. Any help is
appreciated.

···

--
José Alexandre Nalon
nalon@...166...

There is not something that exists right now to do that, but there isn’t anything preventing that from being made except not having time to make it. Just as a rough outline of how I would approach it would be to take the output of the 2d stem function, break it down into the constituent parts (multiple collections there, I think), and pass them through the appropriate 2d_to_3d functions that are available in art3d.py (I think that is the right file). This is the general idea for many of the current mplot3d functions. the 2d_to_3d conversion step is what adds third dimension information.

Feel free to add a feature request to github. I know I already have a long list there, but in a few weeks I should be able to hack at them again and that list is what will help me remember what needs to be done.

Oh, and of course, patches are always welcomed! Even if it is incomplete, I could take it as a starting point and clean it up.

Cheers!
Ben Root

···

On Wed, Apr 18, 2012 at 2:41 PM, José Alexandre Nalon <nalon@…1836…66…> wrote:

Hello,

I need to plot 2d sequences of two kinds. I wanted them to look like

a stem plot because of other plots that are in the same text.

There are actually two kinds of plots that I need: one is a standard

two-dimensional domain, with points in the domain over a rectangular

grid; the other is a two-variable function of one independent variable:

I need this to plot complex-sequences, with the markers around a

baseline.

If I couldn’t make myself clear, the first one is like the image in

the link below:

http://www.mathworks.com/help/techdoc/ref/stem3.html

I couldn’t find a link to an image similar to the second kind, though.

But this one is less important, as I can plot real and imaginary parts

in different axes.

I could get something that looked ok using scatter3d. If there is a

way to emulate the stem behaviour using that, I think it is ok. But

I thought that probably there is a better way to do it. Any help is

appreciated.