Wireframe colored mesh

Hi,

I’m following up on an answered stack overflow thread:

http://stackoverflow.com/questions/24909256/how-to-obtain-3d-colored-surface-via-python/26026556#26026556

They show how to create a colormap for a wireframe plot. I noticed that this solution fails when the X and Y data are not the same shape. This inherently comes down to _segments3d being a 3 dimensional array when X, Y are the same dimension, but a 1D array when X,Y are different dimensions.

So for example, a set of 10 curves, each with 100 points would have the dimensions:

X —> 10

Y —> 100

Z ----> 10 x 100

I’ve tried hacking on this all day and just can’t get a solution to bypass the numpy ravels() and rolls()!

Any ideas?

Thanks

I always wonder why people go through such lengths to implement such features, but never bother to offer them back into the mainline code or at least suggest such a feature. Think you could make a feature request for this on github? I bet I could figure out how to integrate it into the mesh code without the need for any hacks if I spend a free moment on it.

Ben Root

···

On Wed, Sep 24, 2014 at 8:43 PM, Adam Hughes <hughesadam87@…287…> wrote:

Hi,

I’m following up on an answered stack overflow thread:

http://stackoverflow.com/questions/24909256/how-to-obtain-3d-colored-surface-via-python/26026556#26026556

They show how to create a colormap for a wireframe plot. I noticed that this solution fails when the X and Y data are not the same shape. This inherently comes down to _segments3d being a 3 dimensional array when X, Y are the same dimension, but a 1D array when X,Y are different dimensions.

So for example, a set of 10 curves, each with 100 points would have the dimensions:

X —> 10

Y —> 100

Z ----> 10 x 100

I’ve tried hacking on this all day and just can’t get a solution to bypass the numpy ravels() and rolls()!

Any ideas?

Thanks


Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer

Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports

Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper

Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer

http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Agreed. I will do so, thanks. If you are able to figure it out, I would be super grateful. I must have spend 5 hours beating my head over this…

I’ll fill it out tonight.

···

On Wed, Sep 24, 2014 at 9:07 PM, Benjamin Root <ben.root@…1304…> wrote:

I always wonder why people go through such lengths to implement such features, but never bother to offer them back into the mainline code or at least suggest such a feature. Think you could make a feature request for this on github? I bet I could figure out how to integrate it into the mesh code without the need for any hacks if I spend a free moment on it.

Ben Root

On Wed, Sep 24, 2014 at 8:43 PM, Adam Hughes <hughesadam87@…287…> wrote:

Hi,

I’m following up on an answered stack overflow thread:

http://stackoverflow.com/questions/24909256/how-to-obtain-3d-colored-surface-via-python/26026556#26026556

They show how to create a colormap for a wireframe plot. I noticed that this solution fails when the X and Y data are not the same shape. This inherently comes down to _segments3d being a 3 dimensional array when X, Y are the same dimension, but a 1D array when X,Y are different dimensions.

So for example, a set of 10 curves, each with 100 points would have the dimensions:

X —> 10

Y —> 100

Z ----> 10 x 100

I’ve tried hacking on this all day and just can’t get a solution to bypass the numpy ravels() and rolls()!

Any ideas?

Thanks


Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer

Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports

Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper

Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer

http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

https://github.com/matplotlib/matplotlib/issues/3562

···

On Wed, Sep 24, 2014 at 6:17 PM, Adam Hughes <hughesadam87@…287…> wrote:

Agreed. I will do so, thanks. If you are able to figure it out, I would be super grateful. I must have spend 5 hours beating my head over this…

I’ll fill it out tonight.

On Wed, Sep 24, 2014 at 9:07 PM, Benjamin Root <ben.root@…1304…> wrote:

I always wonder why people go through such lengths to implement such features, but never bother to offer them back into the mainline code or at least suggest such a feature. Think you could make a feature request for this on github? I bet I could figure out how to integrate it into the mesh code without the need for any hacks if I spend a free moment on it.

Ben Root

On Wed, Sep 24, 2014 at 8:43 PM, Adam Hughes <hughesadam87@…120…287…> wrote:

Hi,

I’m following up on an answered stack overflow thread:

http://stackoverflow.com/questions/24909256/how-to-obtain-3d-colored-surface-via-python/26026556#26026556

They show how to create a colormap for a wireframe plot. I noticed that this solution fails when the X and Y data are not the same shape. This inherently comes down to _segments3d being a 3 dimensional array when X, Y are the same dimension, but a 1D array when X,Y are different dimensions.

So for example, a set of 10 curves, each with 100 points would have the dimensions:

X —> 10

Y —> 100

Z ----> 10 x 100

I’ve tried hacking on this all day and just can’t get a solution to bypass the numpy ravels() and rolls()!

Any ideas?

Thanks


Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer

Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports

Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper

Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer

http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users