On 5/17/2009 11:11 AM Linda_swe apparently wrote:
> ("total size of new array must be unchanged")
Again, this means what it says.
Your data array is the wrong size.
You cannot for example reshape a (3,) array into a (2,2) array.
http://www.scipy.org/Numpy_Example_List_With_Doc#head-11717acafb821da646a8db6997e59b820ac8761a
You can contour any 2d array.
You can optionally supply 1d coordinates.
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.contourf
>>> import matplotlib.pyplot as plt
>>> import numpy as np
>>> plt.contour(np.add.outer(np.arange(20),np.arange(20)))
<matplotlib.contour.ContourSet instance at 0x019BF4B8>
>>> plt.show()
Alan Isaac
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users