|
From: Perry G. <pe...@st...> - 2004-05-17 21:11:12
|
I must be doing something stupid, but I can't get the simplest
loglog to work. For example:
>>> x = arange(10.) + 2
>>> y = x**2
>>> y
array([ 4., 9., 16., 25., 36., 49., 64., 81., 100.,
121.])
>>> loglog(x,y)
Traceback (most recent call last):
[...]
xt = self.transx.positions(x)
File "C:\Python23\Lib\site-packages\matplotlib\transforms.py", line 621,
in po
sitions
return scale*(self.func(x)-minin) + self._boundout.min()
File "C:\Python23\Lib\site-packages\matplotlib\transforms.py", line 520,
in lo
gwarn
raise ValueError('Cannot take log of non-positive data')
ValueError: Cannot take log of non-positive data
>>>
Perry
(v0.53.1 on windows 2000)
|