Re: [Matplotlib-users] Figure with pyQt

2009-01-16 Thread projetmbc
Title: Flashmail Thanks a lot. That's a real good example.   Regards. C.   >Take a look at the matplotlib widgets example referenced below. It >uses mpl widgets rather than qt widgets, but it should make clear the >logic of updating plot properties connected to callbacks > >http://matplotlib.sv

Re: [Matplotlib-users] Figure with pyQt

2009-01-16 Thread John Hunter
On Fri, Jan 16, 2009 at 9:40 AM, wrote: > That's great. I'm a real newbie with mpl and I would like to know how to > change figure after a PyQt-Event. > That's must be simple but I don't see how to do this. My idea would be for > example to show different kinds of draw like for example the sin fu

Re: [Matplotlib-users] Figure with pyQt

2009-01-16 Thread projetmbc
th) > >    tempImg = QtGui.QImage(self.tempPath) > >    self.cb = QtGui.QApplication.clipboard() > >    self.cb.setImage(tempImg) > >    except: > >    print 'Error copying figure to clipboard' > >    er

Re: [Matplotlib-users] Figure with pyQt

2009-01-16 Thread B Clowers
'\\'     if not valid(homeDir) :     homeDir = 'C:\\'     return homeDir         def main():     import sys     app = QtGui.QApplication(sys.argv)     w = MPL_Widget() #    w.canvas.setupSub(1)     ax1 = w.canvas.axDict['ax1'

Re: [Matplotlib-users] Figure with pyQt

2009-01-15 Thread projetmbc
>> Hello, >> I would like to see the following example >> http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_demo. ht >> mlusing the 2nd one >> http://matplotlib.sourceforge.net/examples/user_interfaces/

Re: [Matplotlib-users] Figure with pyQt

2009-01-15 Thread Darren Dale
On Thu, Jan 15, 2009 at 11:56 AM, wrote: > Hello, > I would like to see the following example > http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_demo.ht > mlusing > the 2nd one > http://matplotlib.sourc

[Matplotlib-users] Figure with pyQt

2009-01-15 Thread projetmbc
Hello, I would like to see the following example http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_demo.ht ml using the 2nd one http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt 4.html . In fact, I don't undrestand how to add the figure to the screen (I'm