From: John H. <jdh...@ac...> - 2004-05-22 01:04:05
|
>>>>> "Stephen" == Stephen Roderick <snr...@ya...> writes: Stephen> Traceback (most recent call last): File Stephen> "dynamic_demo_wx.py", line 108, in onTimer Stephen> self.bar[1].set_data(self.ind,self.data) AttributeError: Stephen> Rectangle instance has no attribute 'set_data' Stephen> Can anyone help? I've pored over the onilne docs, and Stephen> tried various changes, to no affect. See examples/system_monitor.py, which shows you how to dynamically update a bar graph. bar returns a list of Rectangles, which are a subclass of Patch, defined here: http://matplotlib.sf.net/matplotlib.patches.html. You can call any of the methods defined for a Patch or Rectangle, eg set_height. JDH |