FIFOBuffer calls BBox.update, not a method


I was doing a simple test using a FIFOBuffer. I set the dataLim parameter
to the dataLim of a Line2D plot. After adding a value to the FIFO, it
raises an exception. It looks like the FIFO is trying to call
Bbox.update(), but that method does not exist. Other update_*() methods do.
Any ideas?

Here's a snippet:

import matplotlib.pyplot as plt
from matplotlib.mlab import FIFOBuffer as FIFO

f = FIFO(100)
p = plt.plot([0,1,2],[0,1,2])
f.dataLim = p[0].get_axes().dataLim


Here's the exception:

Traceback (most recent call last):
  File "C:\", line 9, in <module>
  File "C:\Python26\lib\site-packages\matplotlib\", line 1103, in add
    self.dataLim.update(xys, -1) #-1 means use the default ignore setting
AttributeError: 'Bbox' object has no attribute 'update'


View this message in context:
Sent from the matplotlib - users mailing list archive at