On Oct 5, 2006, at 5:02 AM, hzhatlboro wrote: Not sure if I understand your solution properly. I replaced the viewer part with your code and the figure looks better but without a color bar. The error message prompted is listed below:- Found another bug. These bugs may have been caused by a change in version of matplotlib after 1.1 was released, I am not sure. Anyhow, to make this work correctly, you need to go to C:\Python24\lib\site-packages\fipy\viewers\matplotlibViewer\matplotlib2DViewer.py and change line 83 from >>> self.colorbar = pylab.colorbar(array(self.vars[0])) to >>> self.colorbar = pylab.colorbar() while you are at it, you may want to edit matplotlib2DGridViewer.py, line 111 (not necessary to fix the above, but worth doing) from: >>> return reshape(array(self.vars[0]), self.vars[0].getMesh().getShape()) to >>> return reshape(array(self.vars[0]), self.vars[0].getMesh().getShape()[::-1]) to make that work correctly as well. Sorry for the hassle. Viewers are hard for us to get right as they are not included in our test suite. We will most probably release an update version 1.1.1 with the bug fixes to the viewers. Cheers -- Daniel Wheeler |
- Re: Fipy v1.1 installation problem? Daniel Wheeler
- Re: Fipy v1.1 installation problem? hzhatlboro
- Re: Fipy v1.1 installation problem? Daniel Wheeler
- Re: Fipy v1.1 installation problem? Jonathan Guyer
- Re: Fipy v1.1 installation problem? hzhatlboro
- Beginner's question---Initial condition setting hzhatlboro
- Re: Beginner's question---Initial condition se... Jonathan Guyer
- Re: Beginner's question---Initial conditio... Jonathan Guyer
- Re: Beginner's question---Initial con... Daniel Wheeler
- Re: Beginner's question---Initial... hzhatlboro
- Re: Beginner's question---Initial... Daniel Wheeler
- Re: Beginner's question---Initial... Daniel Wheeler
- Re: Beginner's question---Initial... hzhatlboro
- Re: Beginner's question---Initial... Daniel Wheeler
