Hi all,
I recently updated matplotlib-py25 to the version of 0.98.5-1. And I am
having trouble using it with fipy. See the following example and errors:
>>> from fipy import *
>>> mesh=Grid2D(nx=5,ny=5)
>>> var=CellVariable(mesh=mesh,value=range(25))
>>> matplotlibViewer.make(var).plot()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Library/Python/2.5/site-packages/FiPy-2.0a1-py2.5.egg/fipy/viewers/matplotlibViewer/__init__.py",
line 44, in make
return Matplotlib2DViewer(vars = vars, title = title, limits = limits)
File
"/Library/Python/2.5/site-packages/FiPy-2.0a1-py2.5.egg/fipy/viewers/matplotlibViewer/matplotlib2DViewer.py",
line 112, in __init__
ax.add_patch(self.collection)
File "/sw/lib/python2.5/site-packages/matplotlib/axes.py", line 1348, in
add_patch
self._update_patch_limits(p)
File "/sw/lib/python2.5/site-packages/matplotlib/axes.py", line 1362, in
_update_patch_limits
vertices = patch.get_path().vertices
AttributeError: 'PolyCollection' object has no attribute 'get_path'
I wonder how can I fix it. Thank you in advance for any suggestion.
Regards,
Zhiwen