[Matplotlib-users] function domain problems

2006-09-07 Thread Davidlohr Bueso A.
Hi all,

I'm having trouble plotting functions were the domain aren't the real
numbers (R). Functions like x**-n, log(x), etc. Does anyone know if
there's a simple way of solving this problem. Here's a little script and
it's error:

from pylab import *

def f(x):
return log(x)

x = arange(-3, 4)
plot(x, f(x))
show()


Output:

Traceback (most recent call last):
  File test, line 7, in ?
plot(x, f(x))
  File /usr/lib/python2.4/site-packages/matplotlib/pylab.py, line
2019, in plot
ret =  gca().plot(*args, **kwargs)
  File /usr/lib/python2.4/site-packages/matplotlib/axes.py, line 2111,
in plot
self.autoscale_view(scalex=scalex, scaley=scaley)
  File /usr/lib/python2.4/site-packages/matplotlib/axes.py, line 975,
in autoscale_view
if scaley: self.set_ylim(locator.autoscale())
  File /usr/lib/python2.4/site-packages/matplotlib/ticker.py, line
839, in autoscale
return take(self.bin_boundaries(dmin, dmax), [0,-1])
  File /usr/lib/python2.4/site-packages/matplotlib/ticker.py, line
809, in bin_boundaries
scale, offset = scale_range(vmin, vmax, nbins)
  File /usr/lib/python2.4/site-packages/matplotlib/ticker.py, line
783, in scale_range
ex = divmod(math.log10(-meanv), 1)[0]
OverflowError: math range error


Thanks!

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Problems with matplotlib for windows

2006-09-06 Thread Davidlohr Bueso A.
Hi,

I installed matplotlib for winXP, and when I try to import pylab I get
this error:

 from pylab import *

Traceback (most recent call last):
  File pyshell#0, line 1, in -toplevel-
from pylab import *
  File C:\Python24\Lib\site-packages\pylab.py, line 1, in -toplevel-
from matplotlib.pylab import *
  File C:\Python24\Lib\site-packages\matplotlib\pylab.py, line 196, in
-toplevel-
import cm
  File C:\Python24\Lib\site-packages\matplotlib\cm.py, line 5, in
-toplevel-
import colors
  File C:\Python24\Lib\site-packages\matplotlib\colors.py, line 33, in
-toplevel-
from numerix import array, arange, take, put, Float, Int, where, \
  File C:\Python24\Lib\site-packages\matplotlib\numerix\__init__.py,
line 60, in -toplevel-
from Numeric import *

I'm using matplotlib-0.87.2.win32-py2.4.exe

Does anyone know what I'm doing wrong?

Thanks!


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Problem with windows install

2006-09-06 Thread Davidlohr Bueso A.
I had the same problem today, and solved it by using
matplotlib-0.87.2.win32-py2.4.exe


On Wed, 2006-09-06 at 15:06 -0500, Ryan Krauss wrote:
 I am trying to install matplotlib on my office Windows computer.  I
 have installed the following:
 python-2.4.3.msi
 numpy-1.0b5.win32-py2.4.exe
 scipy-0.5.1.win32-py2.4.exe
 matplotlib-0.87.5.win32-py2.4.exe
 
 on a completely fresh install.
 
 I am getting the following message:
 H:\python
 Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32
 Type help, copyright, credits or license for more information.
  import pylab
 Traceback (most recent call last):
   File stdin, line 1, in ?
   File C:\Python24\Lib\site-packages\pylab.py, line 1, in ?
 from matplotlib.pylab import *
 ImportError: No module named matplotlib.pylab
  import matplotlib
 Traceback (most recent call last):
   File stdin, line 1, in ?
 ImportError: No module named matplotlib
 
 What am I doing wrong?
 
 Thanks,
 
 Ryan
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users