| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
So the inputs x y and z must all be 3d right? >>> x = np.arange(3) >>> y = np.arange(4) >>> z = np.arange(5) >>> np.broadcast_arrays(x, y, z) ValueError: shape mismatch: two or more arrays have incompatible dimensions on axis 0. >>> x = np.arange(3) >>> y = np.arange(4) >>> z = np.arange(5) >>> x.shape = (-1, 1, 1) >>> y.shape = (1, -1, 1) >>> z.shape = (1, 1, -1) >>> X, Y, Z = np.broadcast_arrays(x, y, z) >>> print Y.shape (3, 4, 5) >>> print y.shape (1, 4, 1) |
Sorry, something went wrong.
|
On Sunday, August 12, 2012, Phil Elson wrote:
|
Sorry, something went wrong.
Added broadcasting support in some mplot3d methods
| Back | FazBrowse Home | New Git URL |
plot_surface and plot_wireframe gain the ability to allow for broadcastable inputs for X, Y, and Z.