On Friday July 9 2010 00:06:05 Shir J. Livne wrote:
> Hello,
> 
> I keep getting the error "ValueError: Need more than 1 value to unpack"
> every time I try to use the line ax.plot_wireframe(myArray[:,0],
> myArray[:,1], myArray[:,2])
> 
> What does that error mean?

Hi Shir,

I think you used 1d-arrays for myArray[:, i] and the plot_wireframe method 
expects 2d-arrays for x, y and z, respectively. Inside the plot_wireframe 
method the shape of Z is transformed into number of rows and columns:
rows, cols = Z.shape
and that is the point where you get the ValueError, because Z.shape is only 
one element.

You may also want to look at the examples: 
http://matplotlib.sourceforge.net/examples/mplot3d/wire3d_animation_demo.html
http://matplotlib.sourceforge.net/examples/mplot3d/wire3d_demo.html

If this doesn't help, it would be useful if you would set up a small stand-
alone example illustrating your problem with some simple data with the shape 
of myArray.

Kind regards,
Matthias

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to