On Mon, Sep 22, 2014 at 3:57 PM, Yun Tao <yun...@ucdavis.edu> wrote: > Hi all, >
Hi Yun, You found a bug! Thanks. This has been fixed with https://github.com/wd15/fipy/commit/d1b23487720d4135968bddb9db52dd8476dd09f1 You could make those changes to your code or pull in the particular commit. The following gist demos a working sub domain plot https://gist.github.com/wd15/00366e8f8833eb2f218f Check that it works for you after making the changes. I noticed that the bounds you were imposing in your script did not actually force a sub domain plot, but included the entire domain. In plotting a very simple 2D diffusion process (see attached file), I > noticed that I am incapable of visualizing the solution at a smaller region > than the predefined domain size. > This should be fixed with the changes above For instance, in a 12x12 landscape, diffusion looks the same as when I > fixed the plot window to be 0.5x0.5. > The x, y axes run from -6 to 6 and you are not reducing the window in your script. The gist reduces the limits to (-3, 3) in both the x and y directions. Locking *datamin *and *datamax *inside *MatplotlibViewer *also doesn't seem > to help. > I set "datamax=4." and it appears to limit the extent of the data. Any value above 4 is plotted as if it is 4. (dark red for me). Any suggestion? My eventual goal is to be able to simultaneously see > different parts of the domains in separate subplots. > The following is two sub domain plots of the same field https://gist.github.com/wd15/f59005909801df9dd38b -- Daniel Wheeler
_______________________________________________ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]