Re: [Matplotlib-users] 1 colorbar on 2 subplots.

2011-11-04 Thread Benjamin Root
On Friday, November 4, 2011, Tony Yu wrote: > > > On Fri, Nov 4, 2011 at 4:49 PM, Rahul Mahajan wrote: >> >> Hi, >> I am trying to put 1 colorbar on 2 subplots, but failing miserably. >> >> I have tried multiple approaches, involving subplot2grid, add_axes, AxesGrid etc. >> >> If anyone has a "ca

Re: [Matplotlib-users] Warning: converting a masked element to nan

2011-11-04 Thread Stan West
From: questions anon [mailto:questions.a...@gmail.com] Sent: Wednesday, November 02, 2011 17:17 Thanks, I think you are right about the datetimes for the x axis causing the problem. Does anyone have any ideas how to resolve this? Does it help to call ax.xaxis_date() before your calls to plt.plo

Re: [Matplotlib-users] 1 colorbar on 2 subplots.

2011-11-04 Thread Tony Yu
On Fri, Nov 4, 2011 at 4:49 PM, Rahul Mahajan wrote: > Hi, > I am trying to put 1 colorbar on 2 subplots, but failing miserably. > > I have tried multiple approaches, involving subplot2grid, add_axes, > AxesGrid etc. > > If anyone has a "canned" routine or knows what to do, your help is greatly >

[Matplotlib-users] 1 colorbar on 2 subplots.

2011-11-04 Thread Rahul Mahajan
Hi, I am trying to put 1 colorbar on 2 subplots, but failing miserably. I have tried multiple approaches, involving subplot2grid, add_axes, AxesGrid etc. If anyone has a "canned" routine or knows what to do, your help is greatly appreciated. Here is my code block: fig = pyplot.figure() a

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 66, Issue 11

2011-11-04 Thread Stuart Mumford
Hello, Thanks for your help. Do you need the colorbar scale to change with each frame? If not, you can > create a wholly independent colorbar like so: > Yes, I do need the colour bar to update with each frame unfortunately! What I would do is "prime the pump" by creating the first frame. The