On Sep 30, 2006, at 4:12 AM, hzhatlboro wrote: ----- Original Message ---- From: Daniel Wheeler < [EMAIL PROTECTED]> To: Multiple recipients of list < [email protected]> Sent: Saturday, 30 September, 2006 5:20:30 AM Subject: Re: Fipy v1.1 installation problem? I assume for "C:\FiPy\EXEs\FiPy-1.1.win32\FiPy-1.1\examples\diffusion \steadyState\mesh50x50\input.py" that you viewed something successfully. Is that correct?
Yes
Was this displayer with mayavi or matplotlib?
I think it was displayed with matplotlib. A screenshot is attached.
It's matplotlib. Strange.
I suspect it was displayed with mayavi and that matplotlib is broken. At the moment I think your fipy installation is fine and works okay. You can go ahead and start working with fipy if you don't mind living without a 1D plotting capability.
Would prefer to fix the problem completely and I will try to install Python 2.4 and follow the procedures in one of your previous emails.
Which version of matplotlib are you using? Do
>>> import matplotlib >>> matplotlib.__version__
to find out. You could be using a later version.
On the other hand, it is probably good to fix this problem so that you can work through the examples effectively. Does mesh1D.py display anything at all. Is it failing at the first attempt at displaying something?
Can you try running the following file. This will give better error messages.
A screenshot is in the attached PDF file. Screen output as below:-
numerix Numeric 24.2 Traceback (most recent call last): File "C:\Documents and Settings\Zhiheng Huang\Desktop\mesh1D.py", line 188, in ? limits={'datamin': 0., 'datamax': 1.})
Set the limits argument to be limits={}, just to check that. File "C:\Python23\Lib\site-packages\fipy\viewers\matplotlibViewer\matplotlib1DViewer.py", line 63, in __init__ self.lines = [pylab.plot(*datum) for datum in self._getData()] File "C:\Python23\Lib\site-packages\matplotlib\pylab.py", line 2018, in plot ret = gca().plot(*args, **kwargs) File "C:\Python23\Lib\site-packages\matplotlib\axes.py", line 2790, in plot self.autoscale_view() File "C:\Python23\Lib\site-packages\matplotlib\axes.py", line 817, in autoscale_view self.set_ylim(locator.autoscale()) File "C:\Python23\Lib\site-packages\matplotlib\ticker.py", line 798, in autoscale return take(self.bin_boundaries(dmin, dmax), [0,-1]) File "C:\Python23\Lib\site-packages\matplotlib\ticker.py", line 768, in bin_boundaries scale, offset = scale_range(vmin, vmax, nbins) File "C:\Python23\Lib\site-packages\matplotlib\ticker.py", line 733, in scale_range var = dv/max(abs(vmin), abs(vmax)) ZeroDivisionError: float division
Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail <Screenshots.pdf>
|