Re: [Matplotlib-users] Problems using Matplotlib from a GTK app

2013-10-11 Thread Sterling Smith
Skip, Here are some lines from an application I have written. from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg In the setup: self.canvas = FigureCanvasGTKAgg(self.figure) self.canvas.set_size_request(600,600) self.canvas.show() #Pack the canvas in a parent contai

[Matplotlib-users] Problems using Matplotlib from a GTK app

2013-10-11 Thread Skip Montanaro
I want to use matplotlib as a component of a larger, event-driven GTK app. That means pylab.show is (I think) not the way to go, as it starts up its own event loop which doesn't return. I've tried to clear and plot in my event handler, but my plot is never displayed. My initialization code looks l