On Oct 4, 2006, at 4:04 PM, Jonathan Guyer wrote:
The problem is in fipy/viewers/matplotlibViewer/matplotlibGrid2DViewer. As far as I can tell it is line 111, it is: >>> return reshape(array(self.vars[0]), self.vars[0].getMesh().getShape()) it should be: >>> return reshape(array(self.vars[0]), self.vars[0].getMesh().getShape()[::-1]) to reverse the axis. Things seem to display nicely with that fix. Jon, shall I go ahead and fix this on trunk and branch-version-1_1? hzhatlboro, You can explicitly use a different viewer to get around this problem. One choice, replace: >>> from fipy.viewers import make >>> viewer = make(vars=c, limits={'datamin':0., 'datamax':1.}) with: >>> from fipy.viewers.matplotlibViewer.matplotlib2DViewer import Matplotlib2DViewer >>> viewer = Matplotlib2DViewer(vars=c, limits={'datamin':0., 'datamax':1.}) in your script. Hope this helps. Thanks for your feedback, it is very useful.
-- Daniel Wheeler |
- Re: Fipy v1.1 installation problem? hzhatlboro
- Re: Fipy v1.1 installation problem? 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
