|
From: Zelakiewicz, S. (Research) <zel...@cr...> - 2004-11-17 22:24:19
|
First off, thanks to everyone for the replies.
I think the problem turned out to be that when you do a `python setup.py
clean` it does not clean out the build directory (despite what it is
saying). I manually cleaned it out, rebuilt and everything is fine. There
must have been some strangeness left over from when I was trying to resolve
my include_dir issues I mentioned before.
Just for the record, I am having no problems building against numarray 1.1
or 1.1.1. I started to try to use numeric, but it wanted a lib for cblas
that I didn't have. Before I started any of this, I deleted all old
versions of numarray and matplotlib is had in site-packages.
Thanks again for the help,
Scott.
-----Original Message-----
From: John Hunter [mailto:jdh...@ni...]
Sent: Wednesday, November 17, 2004 4:57 PM
To: Zelakiewicz, Scott (Research)
Cc: 'mat...@li...'
Subject: Re: [Matplotlib-users] Simple plot command fails
>>>>> "Zelakiewicz," == Zelakiewicz, Scott (Research) <zel...@cr...>
writes:
Scott> Still no luck. I am not trying to run this
Scott> interactively. Switching between TkAgg and GTKAgg
Scott> does not seem to do anything.
Did you try rm -rf your old site-packages/matplotlib and your build
subdirectory of the matplotlib src tree, and rebuild/install
matplotlib cleanly?
If that fails, it might be instructive to edit
"/local/lib/python2.2/site-packages/matplotlib/lines.py", line 234,
and print len(x), len(y) and seeing what the hell is going on, since
the last error is
if midPoint and self.gridOn: self.gridline.draw(renderer)
File "/local/lib/python2.2/site-packages/matplotlib/lines.py", line 234,
in draw
xt, yt = self._transform.numerix_x_y(x, y)
ValueError: x and y must be equal length sequences
Finally, I can see that this is an error arising from drawing the
grid. Does it go away if you turn the grid off (axes.grid : False in
rc and comment out the grid call in simple_plot).
I'm grasping at straws here - my best guess is above, that you have
some incompatible old matplotlib lying around.
JDH
|