From: Jan R. G. <jr...@gm...> - 2005-03-29 22:18:40
|
please, help me on this! On Tue, 29 Mar 2005 10:11:20 -0800, Jan Rienyer Gadil <jr...@gm...> wrote: > any help will be very much appreciated... > or could you suggest a better implementation of this graphing part > > > On Tue, 29 Mar 2005 08:54:06 -0800, Jan Rienyer Gadil <jr...@gm...> wrote: > > could anyone show me how to incorporate this example on my GUI? > > > > what i want to do is to implement this in a wxPanel that is part of my > > wxFrame, but i am getting errors that says wxPanel instance has no > > attribute GetToolBar... > > > > how am i going to get around with this??? > > > > actually, i am doing this because i'm making a graph based on some > > data stored on a list. what i am thinking is to just replace t,s,and c > > part of this example with my group of list : > > > > def plot_data(self): > > # Use ths line if using a toolbar > > a = self.fig.add_subplot(111) > > > > # Or this one if there is no toolbar > > #a = Subplot(self.fig, 111) > > > > t = numpy.arange(0.0,3.0,0.01) > > s = numpy.sin(2*numpy.pi*t) > > c = numpy.cos(2*numpy.pi*t) > > a.plot(t,s) > > a.plot(t,c) > > self.toolbar.update() > > > > please, i need help asap... > > > |