Re: Embedding Matplotlib in wxpython wx.Panel problem

2007-07-11 Thread kyosohma
> self.subplot.plot(x,y, '-r') > > > def _onSize(self, event): > > self._resizeflag = True > > > def _onIdle(self, evt): > > if self._resizeflag: > > self._resizeflag = False > > self._SetSize()

Re: Embedding Matplotlib in wxpython wx.Panel problem

2007-07-10 Thread abakshi11
self._resizeflag = False > self._SetSize() > self.draw() > > def _SetSize(self, pixels = None): > """ > This method can be called to force the Plot to be a desired > size, which defaults to > the ClientSize

embedding matplotlib in wxpython

2007-04-25 Thread Soren
matplotlib website, but can't seem to get it to work.. Does anyone here have experience in embedding matplotlib in wxpython? I have attached my code.. it makes two panels.. one with a matplotlib plot, and one with a button.. but the plotpanel is just a small square in the corner !! .. Any help

Embedding Matplotlib in wxpython wx.Panel problem

2007-04-25 Thread Soren
Hi, I'm trying to create a small GUI program where I can do plots using Matplotlib. I've been trying to borrow code from the examples at the matplotlib website, but I can't get it to work. I want to be able to create a wx.Panel that contains an axis for plotting. Around it i want other panels con