|
From: John H. <jdh...@ac...> - 2004-05-21 15:01:09
|
>>>>> "Andrew" == Andrew Straw <str...@as...> writes:
Andrew> matplotlib 0.54 numarray 0.9 python 2.2.1 windows XP
Andrew> if I use WXAgg or Agg, I get this:
Hmm, this is an I-can't-replicate-your-bugs-day.
Using numarray 0.8 or 0.9 with matplotlib on linux, setting numerix :
numarray in my rc file, I have no troubles with your script on any of
a variety of backends.
Apparently the data coming from the numerix transform is complex. The
line that is failing for you is a tickline (as indicated by your
traceback). These lines are small so it would be interesting to see
by printing them if they are complex before of after being handed off
to the transformation. In site-packages/matplotlib/lines.py on line
180, replace
xt, yt = self._transform.numerix_x_y(x, y)
with
print 'before', x, y
xt, yt = self._transform.numerix_x_y(x, y)
print 'after', xt, yt
and let me know what happens. If they are complex before then it
appears complex data is being passed in; in this case try printing x,y
in your script
x = a*cos( theta )*exp(b*theta)
y = a*sin( theta )*exp(b*theta)
print 'x', x
print 'y', y
to see if you can find where these complexes are coming from.
Thanks,
JDH
|