I have a GTK app which runs its matplotlib stuff in a separate
thread. If I call pylab.show() at the end of building the plot
the first time it displays, then after that I have to destroy
the window before it will think about plotting something else,
and it never does (it pretends to - my log message tell me that
it is). If I call pylab.draw() no window is ever displayed. My
GUI is always active.
I would like to pop up a new top-level window for each figure.
How do I do that? My current build-a-plot code looks like this:
figure = pylab.figure()
ax = figure.add_subplot(111)
... build dates and prices lists ...
formatter = matplotlib.dates.DateFormatter('%H:%M:%S')
... what goes here? ...
Instead of show() or draw() as the last line what should I be