[SciPy-User] vectorplot scikit code patch

George Nurser gnurser@googlemail....
Thu Nov 12 07:07:15 CST 2009


Hi,

Not sure where to post this.

The lic_demo.py and lic_efield_demo.py scripts in the vectorplot
scikit fail for me with
Traceback (most recent call last):
  File "lic_efield_demo.py", line 55, in <module>
    plt.figimage(image)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pyplot.py",
line 404, in figimage
    sci(ret)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pyplot.py",
line 160, in sci
    gca()._sci(im)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axes.py",
line 1338, in _sci
    "Argument must be an image, collection, or ContourSet in this Axes")
ValueError: Argument must be an image, collection, or ContourSet in this Axes

I got both scripts to work by in each of them replacing
    plt.clf()
    plt.axis('off')
    plt.figimage(image)
by
    fig = plt.figure()
    plt.clf()
    plt.axis('off')
    fig.figimage(image)

--George.


More information about the SciPy-User mailing list