Traceback (most recent call last): File
> "dynamic_demo_wx.py", line 108, in onTimer
> self.bar[1].set_data(self.ind,self.data) AttributeError:
> Rectangle instance has no attribute 'set_data'
> Can anyone help? I've pored over the onilne docs, and
> 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