Ticket #36 (closed defect: fixed)

Opened 5 months ago

Last modified 3 months ago

cvs master checkout /example/plot.pyw broken (on windows xp)

Reported by: pataphor@gmail.com Assigned to:
Priority: blocker Keywords:
Cc:

Description

Traceback (most recent call last):

File "C:\reinteract\lib\replot.py", line 82, in do_size_request

requisition.width = self.figure.bbox.width()

TypeError?: 'numpy.float64' object is not callable

Easy to fix though :-), just remove the parens after width, and do the same for the next line (line 83). After that it works!

Change History

08/10/08 22:33:20 changed by otaylor

  • status changed from new to closed.
  • resolution set to fixed.

Ugh, this is an API change in matplotlib 0.98. See:

http://matplotlib.sourceforge.net/API_CHANGES

with/height have been changed from functions to properties. I've hacked the code up for now to try it as a function, then if that fails, try it as a function. I think this should work with both new old and old versions of matplotlib, though I haven't tested with 0.98. (not yet packaged for the Fedora Linux distribution I'm using.)

http://git.fishsoup.net/cgit/reinteract/commit/?id=52accdc621c8159340ee4877b6df40bcf45ee775