Re: [Matplotlib-users] Size of array elements when using Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs)

2012-08-02 Thread surfcast23
surfcast23 wrote: In the documentation it says that Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs) takes 2D arrays as the first two arguments. Do the arrays have to have the same size dimensions? Any one know? -- View this message in context:

Re: [Matplotlib-users] Size of array elements when using Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs)

2012-08-02 Thread Benjamin Root
On Thursday, August 2, 2012, surfcast23 wrote: surfcast23 wrote: In the documentation it says that Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs) takes 2D arrays as the first two arguments. Do the arrays have to have the same size dimensions? Any one know? Working from

Re: [Matplotlib-users] Size of array elements when using Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs)

2012-08-02 Thread surfcast23
Okay thank you! The Matlab code I am basing this on takes arrays of different shapes with different sized elements ie x = 1 512 y = 101 1 and I guess automatically makes the the same shape. Can you point me in the direction of documentation that will explain how I can do this in Python?

Re: [Matplotlib-users] Size of array elements when using Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs)

2012-08-02 Thread Benjamin Root
On Thursday, August 2, 2012, surfcast23 wrote: Okay thank you! The Matlab code I am basing this on takes arrays of different shapes with different sized elements ie x = 1 512 y = 101 1 and I guess automatically makes the the same shape. Can you point me in the direction of

Re: [Matplotlib-users] Size of array elements when using Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs)

2012-08-02 Thread surfcast23
Wouldn't X= np.ones((1, 45)) Y= np.zeros((32, 1)) change the existing values of the elements to ones and zeros? Benjamin Root-2 wrote: On Thursday, August 2, 2012, surfcast23 wrote: Okay thank you! The Matlab code I am basing this on takes arrays of different shapes with different

Re: [Matplotlib-users] Size of array elements when using Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs)

2012-08-02 Thread surfcast23
sorry misssed this line Which produces x and y with the same shapes, and their values duplicated in the direction the array was expanded. surfcast23 wrote: Wouldn't X= np.ones((1, 45)) Y= np.zeros((32, 1)) change the existing values of the elements to ones and zeros? Benjamin

Re: [Matplotlib-users] Size of array elements when using Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs)

2012-08-02 Thread Benjamin Root
On Thursday, August 2, 2012, surfcast23 wrote: Wouldn't X= np.ones((1, 45)) Y= np.zeros((32, 1)) change the existing values of the elements to ones and zeros? I was just demonstrating what np.broadcast_arrays() does. Take your x and y arrays and put them through this function and put

Re: [Matplotlib-users] Size of array elements when using Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs)

2012-08-02 Thread surfcast23
I tested it out and it does change all the values to ones and zeros. Is there a way to broadcast and keep the original values that were in the arrays? Thanks for the help Benjamin Root-2 wrote: On Thursday, August 2, 2012, surfcast23 wrote: Okay thank you! The Matlab code I am basing

Re: [Matplotlib-users] Size of array elements when using Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs)

2012-08-02 Thread Benjamin Root
On Friday, August 3, 2012, surfcast23 wrote: I tested it out and it does change all the values to ones and zeros. Is there a way to broadcast and keep the original values that were in the arrays? Thanks for the help Don't use ones() and zeros(). It was just a way to swtup a demonstration

Re: [Matplotlib-users] Size of array elements when using Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs)

2012-08-02 Thread surfcast23
Gotcha ya working perfectly now thank you for the help! Benjamin Root-2 wrote: On Thursday, August 2, 2012, surfcast23 wrote: Wouldn't X= np.ones((1, 45)) Y= np.zeros((32, 1)) change the existing values of the elements to ones and zeros? I was just demonstrating what

[Matplotlib-users] Size of array elements when using Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs)

2012-08-01 Thread surfcast23
In the documentation it says that Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs) takes 2D arrays as the first two arguments. Do the arrays have to have the same size dimensions? -- View this message in context: