[Matplotlib-users] combining figures

2006-12-20 Thread Mike Cantor
Hi, I am using matplotlib within a wxPython app. I have a class called plotDialog that inherits from wx.Dialog and contains a matplotlib FigureCanvas. Several types of plot classes derive from plotDialog and bring up pretty windows displaying data of various sources. What I want to do is wr

Re: [Matplotlib-users] Combining figures

2006-08-01 Thread David Huard
There is a nice little trick where you can make two axes share the same xaxis.  Then when you pan or zoom on one, the other isautomagically changed toax1 = subplot(211)ax2 = subplot(212, sharex=ax1)But that's not retroactive, or is it ? i.e. if ax2 has a wider x range than ax1, it won't show up. f

Re: [Matplotlib-users] Combining figures

2006-08-01 Thread John Hunter
> "David" == David Huard <[EMAIL PROTECTED]> writes: David> Hi John, Thanks for taking the time to answer a badly David> formulated question. With your indications, I have been David> able to get an example working. Great. David> s1.set_xlim(s2.get_xlim()) There is a nice l

Re: [Matplotlib-users] Combining figures

2006-07-31 Thread David Huard
Hi John, Thanks for taking the time to answer a badly formulated question. With your indications, I have been able to get an example working.The point was that I had a function with a number of arguments that returned a subplot(111) instance. Inside this function there are thousands of  calls to pl

Re: [Matplotlib-users] Combining figures

2006-07-31 Thread John Hunter
> "David" == David Huard <[EMAIL PROTECTED]> writes: David> Hi, I have a function fig(x) that returns a subplot David> instance, and I'd like to make a new figure by calling this David> function twice. David> For example: def fig(x): s = subplot(111) return s.plot(x) Davi

[Matplotlib-users] Combining figures

2006-07-31 Thread David Huard
Hi, I have a function fig(x) that returns a subplot instance,and I'd like to make a new figure by calling this function twice.  For example:def fig(x):    s = subplot(111)    return s.plot(x) and i wan't to do something like:fig = figure(figsize = (6,12))fig.add_axes(fig(x1))fig.add_axes(fig(x2))ax