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(-
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
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
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",