Hello.
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
plt.draw()
f.add(3,3)
Here's the exception:
Traceback (most recent call last):
File "C:\fifo.py", line 9, in <module>
f.add(3,3)
File "C:\Python26\lib\site-packages\matplotlib\mlab.py", 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: http://www.nabble.com/FIFOBuffer-calls-BBox.update%2C-not-a-method-tp25088821p25088821.html
Sent from the matplotlib - users mailing list archive at Nabble.com.