Chris Shen wrote:
> Dear friends,
> I just upgrade matplotlib from 0.83.2 to 0.87 under WinXP, Python 2.3.5,
> Numeric 23.8. I find out that all my plots using contour function do not
> work anymore. I also tried the examples: contour_demo.py,
> contourf_demo.py and contour_image.py. All of them do not work with the
> following error message:
> File "contour_demo.py", line 26, in ?
> levels, colls = contour(X, Y, Z)
> TypeError: unpack non-sequence
> Anyone has any clue in fixing this problem?
> Best regards,
Chris: Contour now returns a single object, so replace all your calls
with something like
CS = contour(X,Y,Z)
P.S. You must not have updated the examples, because the ones that come
with maplotlib 0.87 do work.
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124