[Matplotlib-users] Problem using set_data

2008-06-25 Thread eShopping
Hi the following code snippet is from a simple wxpython/matplotlib app # Data object class class PlotData(object): # Constructor (dummy arrays) def __init__(self): self.np = 100 self.xa = numpy.arange(100.0) self.ya = 2.0 * self.xa self.ys = 4.0

Re: [Matplotlib-users] Problem using set_data

2008-06-25 Thread eShopping
Hi Darren thanks for the quick reply. I tried self.lines[0][0].set_data((self.data.xa,self.data.ya)) self.lines[0][1].set_data((self.data.xa,self.data.ys)) but got the error 'list index out of range' after the second statement. I also tried

Re: [Matplotlib-users] Problem using set_data

2008-06-25 Thread John Hunter
On Wed, Jun 25, 2008 at 7:31 AM, eShopping [EMAIL PROTECTED] wrote: Hi Darren thanks for the quick reply. I tried self.lines[0][0].set_data((self.data.xa,self.data.ya)) self.lines[0][1].set_data((self.data.xa,self.data.ys)) but got the error 'list index out of range' after the second