countour problem with 0.87

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

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

Chris: Contour now returns a single object, so replace all your calls with something like
CS = contour(X,Y,Z)

-Jeff

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

Chris: Contour now returns a single object, so replace all your calls with something like

CS = contour(X,Y,Z)

-Jeff

P.S. You must not have updated the examples, because the ones that come with maplotlib 0.87 do work.

Thanks Jeff for quick input. It is working well for me now.

For the examples, I download from the link on the homepage which still points to http://matplotlib.sourceforge.net/matplotlib_examples_0.83.2.zip

Best regards,
Chris