Docked/tabbed figures in one window?

Good evening.

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?

If not ... do you have suggestions of how i could do that?

Thanks for your help
q

···

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

To gain that which is worth having, it may be necessary to lose everything else.

qubax@...1843... 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. Also, if you use wx, I'd check out wxMPL -- it's a nice wrapper for MPL on wx that will save you a bit of work.

-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.Barker@...259...

For wx, this is illustrated in this example:

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

JDH

···

On Fri, Nov 13, 2009 at 2:24 PM, Christopher Barker <Chris.Barker@...259...> wrote:

qubax@...1843... 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.

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.Barker@...259...> wrote:
> qubax@...1843... 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
matplotlib-users List Signup and Options

--
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.