[Matplotlib-users] [ANN] grima -- pygtk+ widget that embeds matplotlib

2010-09-07 Thread Tom Vaughan
Hello, Today we have made Grima available as free software under the MIT license. Grima is a pygtk+ widget that embeds matplotlib. Basically, this means that Grima allows matplotlib to play nicely with the GTK+ main loop. Grima is hosted on GitHub at http://github.com/cdsi/grima. Please note that

Re: [Matplotlib-users] dynamically add subplots to figure

2009-08-12 Thread Tom Vaughan
Another option is to use mpl_toolkits.axes_grid > (http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#parasiteaxes). > But the previous solution seems to be much easier for you. > Regards, > > -JJ > > > On Thu, Jul 16, 2009 at 1:16 PM, Tom Vaug

Re: [Matplotlib-users] dynamically add subplots to figure

2009-07-16 Thread Tom Vaughan
On Tue, Jun 2, 2009 at 07:33, John Hunter wrote: > On Tue, Jun 2, 2009 at 9:03 AM, Tom Vaughan wrote: >> Is it possible to add subplots to a figure if I don't know in advance >> how many subplots I need to add? >> >> What I do now is I call add_subplot like add_

Re: [Matplotlib-users] dynamically add subplots to figure

2009-06-02 Thread Tom Vaughan
On Tue, Jun 2, 2009 at 11:59, John Hunter wrote: > On Tue, Jun 2, 2009 at 1:51 PM, Tom Vaughan wrote: >> On Tue, Jun 2, 2009 at 07:33, John Hunter wrote: >>> On Tue, Jun 2, 2009 at 9:03 AM, Tom Vaughan wrote: >>>> Is it possible to add subplots to a figure if I

Re: [Matplotlib-users] dynamically add subplots to figure

2009-06-02 Thread Tom Vaughan
On Tue, Jun 2, 2009 at 07:33, John Hunter wrote: > On Tue, Jun 2, 2009 at 9:03 AM, Tom Vaughan wrote: >> Is it possible to add subplots to a figure if I don't know in advance >> how many subplots I need to add? >> >> What I do now is I call add_subplot like add_

Re: [Matplotlib-users] dynamically add subplots to figure

2009-06-02 Thread Tom Vaughan
On Tue, Jun 2, 2009 at 08:40, John Hunter wrote: > On Tue, Jun 2, 2009 at 10:18 AM, Tom Vaughan wrote: > >> Interestingly, if I were to 'print dir(self.figure.axes[i])' I can see >> the change_geometry attribute, but when I attempt to call it, I am >> told &qu

Re: [Matplotlib-users] dynamically add subplots to figure

2009-06-02 Thread Tom Vaughan
On Tue, Jun 2, 2009 at 07:33, John Hunter wrote: > On Tue, Jun 2, 2009 at 9:03 AM, Tom Vaughan wrote: >> Is it possible to add subplots to a figure if I don't know in advance >> how many subplots I need to add? >> >> What I do now is I call add_subplot like add_

[Matplotlib-users] dynamically add subplots to figure

2009-06-02 Thread Tom Vaughan
Is it possible to add subplots to a figure if I don't know in advance how many subplots I need to add? What I do now is I call add_subplot like add_subplot(i, 1, i) where i is 1 initially, and just increases by 1 on each call. This almost works. Except the first plot takes up the whole figure, the

Re: [Matplotlib-users] autoscale question

2007-08-28 Thread Tom Vaughan
On 8/23/07, Fabrice Silva <[EMAIL PROTECTED]> wrote: > Le Wed, 22 Aug 2007 18:21:40 -0700, Tom Vaughan a écrit: > > > Why on the YellowDog 3 system would the x-axis show up as 0 - 2.5, and > > on the Ubuntu Feisty system would the x-axis show up as 2.2 - 2.4? I am >

Re: [Matplotlib-users] autoscale question

2007-08-28 Thread Tom Vaughan
On 8/22/07, John Hunter <[EMAIL PROTECTED]> wrote: > On 8/22/07, Tom Vaughan <[EMAIL PROTECTED]> wrote: > > > Why on the YellowDog 3 system would the x-axis show up as 0 - 2.5, and > > on the Ubuntu Feisty system would the x-axis show up as 2.2 - 2.4? I > > a

[Matplotlib-users] autoscale question

2007-08-22 Thread Tom Vaughan
Hi, I have matplotlib 0.90.1 on YellowDog 3 PPC with Python 2.5 and all the support libraries built by hand, and matplotlib-0.90.1 on Ubuntu Feisty x86 via `aptitude install`. And let's say I have: import pylab pylab.plot([2.2, 2.3, 2.4], [0, 5, 1]) pylab.show() Why on the YellowDog 3 system wou

[Matplotlib-users] matlab porting question

2007-08-17 Thread Tom Vaughan
Hi, What's the equivalent command in matplotlib to matlab's "surf"? I assume it's Axes3D.plot_surface. But this doesn't see to work. The code to be ported is: s = surf(linspace(0,2,100), linspace(-1,1,100), fe'); But in matplotlib I've come up with: terrain = R.randn(100, 100) / 1 nbumps = 20