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:
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
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?
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
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
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
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
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
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
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
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:
11 matches
Mail list logo