Hi, I guess I don't understand the "[axx for axx in ax.flat]" command, but this steals from all the axes.
Cheers, Jody fig,ax = plt.subplots(2,2) for i in range(2): for j in range(2): im=ax[i,j].imshow(np.ones((20,20))) im.set_clim([-1.,2.]) cax,kw = mpl.colorbar.make_axes([axx for axx in ax.flat],shrink=0.5) plt.colorbar(im, cax=cax, **kw) > On Mar 6, 2015, at 9:39 AM, Eric Firing <efir...@hawaii.edu> wrote: > > On 2015/03/05 11:36 PM, Dyah rahayu martiningrum wrote: >> Hello all, >> >> I make multi plot with colorbars. I need help, how do make only one >> colorbar for six panels? I also want to show only lowest x-axis. I copy >> my recent code and figure here. > > An old example of something like this is here: > > http://matplotlib.org/examples/pylab_examples/multi_image.html > > Eric > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users