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.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to