Re: [Matplotlib-users] Easy mistake to make...

2012-05-24 Thread Michael Droettboom
Seems like a good idea. Maybe we gracefully deprecate this? i.e. warn about the confusing usage now, and throw exceptions in a future version? Mike On 05/24/2012 10:22 AM, Benjamin Root wrote: On Thu, May 24, 2012 at 10:09 AM, Tony Yu > wrote: On Thu, May 2

Re: [Matplotlib-users] Easy mistake to make...

2012-05-24 Thread Benjamin Root
On Thu, May 24, 2012 at 10:09 AM, Tony Yu wrote: > > > On Thu, May 24, 2012 at 9:54 AM, Benjamin Root wrote: > >> Just got bit by this and I thought I'd share to help others. >> >> I was just quickly writing out some pyplot commands to create two >> subplots to compare some results. I did: >> >

Re: [Matplotlib-users] Easy mistake to make...

2012-05-24 Thread Tony Yu
On Thu, May 24, 2012 at 9:54 AM, Benjamin Root wrote: > Just got bit by this and I thought I'd share to help others. > > I was just quickly writing out some pyplot commands to create two subplots > to compare some results. I did: > > plt.subplots(1, 2, 1) > plt.contourf() > plt.title("Contou

[Matplotlib-users] Easy mistake to make...

2012-05-24 Thread Benjamin Root
Just got bit by this and I thought I'd share to help others. I was just quickly writing out some pyplot commands to create two subplots to compare some results. I did: plt.subplots(1, 2, 1) plt.contourf() plt.title("Contours") xlim = plt.xlim() ylim = plt.ylim() plt.subplots(1, 2, 2) plt.im