On Tue, Mar 9, 2010 at 2:23 PM, Chris Barker <chris.bar...@noaa.gov> wrote:
> Pribadi, Krishna wrote:
>> Based on what I’ve been reading regarding MPL, it seems that the
>> matplotlib show() function causes another instance of a GUI loop to
>> remain suspended.
>
> right --don't use show(), in fact, don't use pylab for the most part:
>
> http://www.scipy.org/Cookbook/Matplotlib/EmbeddingInWx
>
> and see the "embedding_in_wx" examples as well.

I would agree with Chris that you should bite the bullet and embed it.
 That you are new to Python shouldn't be too much of a problem if you
follow the recipe linked there.  Note that the top links on that page
are broken, but if you go to one of the last links:

http://www.scipy.org/Matplotlib_figure_in_a_wx_panel

...this works.  And if you need help getting it going, people can help
you.  Don't worry about all the fancy graphing stuff there, the draw
method could have just been:

def draw( self ):
            """Draw data."""
            if not hasattr( self, 'subplot' ):
                self.subplot = self.figure.add_subplot( 111 )

                self.subplot.plot( [1,2,3])

and you could lose all the numpy geometry code and it would have been
a boring plot but a simpler block of code.  :D

Che

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to