matplotlib/matplotlib — pull request #742 by dopplershift (2012-03-07 05:14:49+00:00)
Title: Imagegrid colorbars

Some modification to ImageGrid to allow more options for colorsbars:

* Add 'left' and 'bottom' as placement locations for all modes
* Add an 'edge' mode that will only make colorbars along the edge given by the colorbar location (i.e. 'bottom' gives a unique colorbar to each column).
* Add an example of 'edge' placement

The code's beginning to get a bit unwieldly, but I'm couldn't think of a nice way to refactor without massive amounts of code duplication. Fundamentally, the code is making the grid of axes and then adding colorbars in one of (now) 3 different ways. Still, the changes aren't too bad.