Hi FiPy Users, I think Matplotlib 1.4.0-2 breaks FiPy's 2D viewers.
These are the versions supplied by Enthought Canopy's installation. I can provide more detail, but I'm curious to know if anyone else has experienced this. The following code throws an error with Matplotlib 1.4.0-2 installed and works with 1.3.1-9: from fipy import * L = 1. nx = 400 dx = L/nx dy = L/nx mesh = Grid2D(dx=dx, dy=dx, nx=nx, ny=nx) phase = CellVariable(name="phase", mesh=mesh) x = mesh.cellCenters()[0] y = mesh.cellCenters()[1] phase.setValue(1.) x0 = 0.0 y0 = 0.0 phase.setValue(0., where=( ((x-x0)**2+(y-y0)**2 > L/3) & ((x-L)**2+(y-L)**2 > 0.2) ) ) viewer = Matplotlib2DGridViewer(vars=phase) viewer.plot() Dan Lewis Rensselaer Polytechnic Institute _______________________________________________ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]