Jeremy Lewi wrote:
> I would like to use matplotlib to incorporate plots into my fltk
> application.

 > The key point is that I
> want to display the figure in a non-blocking way so that control can
> return to my fltk application while the figure is still being displayed.

> To prototype this I have created a file containing the following python
> code
> 
> import sys
> import fltk
> import matplotlib
> matplotlib.use('FltkAgg')

cool! I didn't know there was an Fltk back-end.

> import pylab as p
> import time
>       
> hf=p.figure()

but anyway, this is your issue. With all the GUI back-ends, if you wan 
to embed the figure in your own app, rather than have pylab create an 
app for you, you need to create the figure a different way, without 
pylab. See the various embedded_in _*** examples:

http://matplotlib.sourceforge.net/examples/user_interfaces/index.html


-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

chris.bar...@noaa.gov

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to