[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(-

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 > sci

[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 "", line 1, in -toplevel- from pylab import * File "C:\Python24\Lib\site-packages\pylab.py", line 1, in -toplevel- from matplotlib.py

[Matplotlib-users] plotting constant functions

2006-09-05 Thread Davidlohr Bueso A.
Hi, I am having trouble graphing constant functions in matplotlib (a simple y = 2). Here is a simple test script I'm using: from pylab import * def f(x): return 2 x = arange(1, 4) plot(x, f(x)) show() When I run it, I get this error: Traceback (most recent call last): File "test",