|
From: Adam H. <hug...@gm...> - 2014-09-25 00:44:01
|
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 |