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,
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
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]
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,