Thanks.

One final question - how would i run the MainLoop() in a separate
thread? because once i start MainLoop(), i can't do something in
ipython anymore.

I'd like to have a window open and then be able to add tabs in
that window, and everything from from within ipython. so that i
can close frames and open others later on. something of the sort:

app.MainLoop()
# make first window
frame = wx.Frame(None,-1,'Plotter')
plotter = PlotNotebook(frame)
# make one tab, plot something in it
axes1 = plotter.add('figure 1').gca()
axes1.plot([1,2,3],[2,1,4])
# use mouse and kill that tab. we want something else
# open another tab now
....

Thanks for your further help,
q


On Mon, Nov 16, 2009 at 08:17:50AM -0600, John Hunter wrote:
> On Fri, Nov 13, 2009 at 2:24 PM, Christopher Barker
> <chris.bar...@noaa.gov> wrote:
> > qu...@gmx.at wrote:
> >> I would like to be able to dock some figures into one window
> >> and be able to look at them by tabs or something similar.
> >>
> >> Is something like that already implemented or does someone know
> >> of a widget that can do that?
> >
> > This should be support on with any of the GUI toolkits -- I"d pick which
> > one you want depending on other reasons:
> >  - which one you are familiar with
> >  - which one you're using for other projects
> >  - etc, etc,
> >
> > With wx, for instance, you'd put each MPL plot on a wxNoteBook page.
> 
> For wx, this is illustrated in this example:
> 
> http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_wx5.html
> 
> JDH
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-- 
The king who needs to remind his people of his rank, is no king.

A beggar's mistake harms no one but the beggar. A king's mistake,
however, harms everyone but the king. Too often, the measure of
power lies not in the number who obey your will, but in the number
who suffer your stupidity.

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to