[Numpy-discussion] Singular Matrix problem with Matplitlib in Numpy (Windows - AMD64)

George Goussard gwg@emss.co...
Mon Dec 8 09:50:14 CST 2008


Hello.

I have been battling with the following error for the past week. The output from the terminal is:

Traceback (most recent call last):
  File "C:\development\Python\2_5_2\Lib\site-packages\matplotlib\backends\backend_qt4agg.py", line 86, in paintEvent
    FigureCanvasAgg.draw(self)
  File "C:\development\Python\2_5_2\Lib\site-packages\matplotlib\backends\backend_agg.py", line 261, in draw
    self.figure.draw(self.renderer)
  File "C:\development\Python\2_5_2\Lib\site-packages\matplotlib\figure.py", line 765, in draw
    legend.draw(renderer)
  File "C:\development\Python\2_5_2\Lib\site-packages\matplotlib\legend.py", line 197, in draw
    self._update_positions(renderer)
  File "C:\development\Python\2_5_2\Lib\site-packages\matplotlib\legend.py", line 513, in _update_positions
    l,b,w,h = get_tbounds(self.texts[-1])
  File "C:\development\Python\2_5_2\Lib\site-packages\matplotlib\legend.py", line 499, in get_tbounds
    bboxa = bbox.inverse_transformed(self.get_transform())
  File "C:\development\Python\2_5_2\Lib\site-packages\matplotlib\transforms.py", line 478, in inverse_transformed
    return Bbox(transform.inverted().transform(self.get_points()))
  File "C:\development\Python\2_5_2\Lib\site-packages\matplotlib\transforms.py", line 1338, in inverted
    self._inverted = Affine2D(inv(mtx))
  File "C:\development\Python\2_5_2\Lib\site-packages\numpy\linalg\linalg.py", line 350, in inv
    return wrap(solve(a, identity(a.shape[0], dtype=a.dtype)))
  File "C:\development\Python\2_5_2\Lib\site-packages\numpy\linalg\linalg.py", line 249, in solve
    raise LinAlgError, 'Singular matrix'
numpy.linalg.linalg.LinAlgError: Singular matrix

Initially MPL plots a graph but when you try to interact with the widget(for example resize) then the output is displayed and the MPL figure is not updated. Everything works with Windows 32-bit. Linux 32-bit and 64-bit are working correctly.

Any ideas would be helpful.

Thanks.

George.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20081208/ad761ce1/attachment-0001.html 


More information about the Numpy-discussion mailing list