Re: MatplotlibViewer

2010-12-17 Thread Ram Balachandran
Thanks for the help guys. I tried something and it seems to be helping me. I tried this import matplotlib matplotlib.use('TkAgg') before my code and now I don't get error messages and the application does not crash. I have no idea why it works though, but I will take it. Ram. On Fri, Dec 17, 20

Re: MatplotlibViewer

2010-12-17 Thread Ram Balachandran
Hi, This is what I get when I type print viewer. But I don't get the error message. That makes sense since Matplotlib2DGridViewer is being assigned to viewer. But I don't know what it is that I changed that is causing the error to go away. Ram. So apparently it is getting assigned. On Fri, D

Re: MatplotlibViewer

2010-12-17 Thread Jonathan Guyer
The AttributeError is because the Matplotlib2DGridViewer has never been assigned to `viewer` for some reason, so the script thinks `viewer` is the module `fipy.viewer`, imported by `from fipy import *`. As to *why* it's not being assigned. I can't guess. What happens when you just enter: >> f

Re: MatplotlibViewer

2010-12-17 Thread Daniel Wheeler
Hi Ram, I don't seem to have any problems with trunk/ or version-2_1/ on linux running the script below. I am not surprised by the issues on Windows. These are almost certainly issues with matplotlib rendering, but I am confused by the "AttributeError:". It doesn't seem to make much sense. I need

MatplotlibViewer

2010-12-16 Thread Ram Balachandran
Hello, I am trying to use Matplotlib for plotting purposes and I am encountering problems with it. I tried to run a simple case listed in the fipy documentation (section 25.3 - page 305). Please find below the sample code *from matplotlib import pylab from fipy import * mesh = Grid2D(nx=50, ny=1

[ fipy-Patches-1495059 ] easily adjust numberOfContours for matplotlibViewer

2006-05-26 Thread SourceForge.net
Contours for matplotlibViewer Initial Comment: This adds an optional numberOfContours argument to the matplotlibViewer plot() method, instead of having it hard coded to 10. It is then possible to do: viewer.plot(numberOfContours = 50) and get a plot with 50 contours instead of ten, but still : viewer.plot() gi

[ fipy-Patches-1495059 ] easily adjust numberOfContours for matplotlibViewer

2006-05-25 Thread SourceForge.net
erOfContours for matplotlibViewer Initial Comment: This adds an optional numberOfContours argument to the matplotlibViewer plot() method, instead of having it hard coded to 10. It is then possible to do: viewer.plot(numberOfContours = 50) and get a plot with 50 contours instead of ten, but still :