bug somewhere called by draw_lines

matplotlib 0.54 numarray 0.9 python 2.2.1 windows XP

    > 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

    > matplotlib 0.54 numarray 0.9 python 2.2.1 windows XP

    > if I use WXAgg or Agg, I get this:

Hmm, this is an I-can't-replicate-your-bugs-day.

I'm sorry I'm just catching up with this now. I made an error building
matplotlib-0.54 for numarray on windows and the original version I sent
John basically doesn't work with numarray-0.9, just numarray-CVS. The
nature of the error is that function calls from C extensions to numarray
are totally mismatched so all bets are off as to what extensions
actually wind up doing.

Sorry for the inconvenience,
Todd Miller

···

On Fri, 2004-05-21 at 10:38, John Hunter wrote:

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

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Todd Miller <jmiller@...86...>