Re: [Matplotlib-users] ipython --pylab: Figure not showing in simple plot(1, 1) command [v1.2]

2012-12-13 Thread Benjamin Root
On Mon, Dec 10, 2012 at 5:49 PM, Timothy Duly timdu...@gmail.com wrote: Paul, Actually, I didn't realize that you had to change the backend in the matplotlibrc file. Once I changed it to 'Qt4Agg', everything worked. Thanks! (to find out where your matplotlibrc file is:

[Matplotlib-users] colorbars with multiple subplots

2012-12-13 Thread Claus
Hi, I am trying to plot a colorbar next to each subplot in a figure. In the following example, I create two figures. In the second figure, I try to add the colorbars. Is there a way to show the colorbar next to each subplot. The way I did it, all the colorbars appear next to the last subplot,

Re: [Matplotlib-users] colorbars with multiple subplots

2012-12-13 Thread Benjamin Root
On Thu, Dec 13, 2012 at 10:45 AM, Claus clausena...@gmail.com wrote: Hi, I am trying to plot a colorbar next to each subplot in a figure. In the following example, I create two figures. In the second figure, I try to add the colorbars. Is there a way to show the colorbar next to each

Re: [Matplotlib-users] colorbars with multiple subplots

2012-12-13 Thread Sterling Smith
Claus, f.colorbar may be trying to place the colorbar on the 'current axes'. Does placing plt.axes(axarr[0,0]) before each f.colorbar help? Also, the plt.colorbar function [1] (maybe f.colorbar also) can take a keyword argument for the axes in which to draw the colorbar. -Sterling [1]

Re: [Matplotlib-users] colorbars with multiple subplots

2012-12-13 Thread Steven Boada
I echo using the AxesGrid object from the toolkits. Protip -- I have had trouble making it work with semilog plots. So if that is what you are doing, it might be worth trying another thing or two first. Steven On 12/13/12 9:56 AM, Benjamin Root wrote: On Thu, Dec 13, 2012 at 10:45 AM,