In Chapters 3, Plotting Multiple Graphs, Subplots and Figures and Chapter 6, Plotting with Advanced Features, we had learned how to draw multiple plots on a grid with various grid options. When you try to plot images with a colorbar on a grid with those options, the colorbar alignment may not be the way we want it. The ImageGrid helper function of the axes_grid1 toolkit enables the plotting of images with a colorbar in a grid with proper alignment. We will learn how to use these functions in this recipe.
We will plot the same correlation map in three different plots in a row, but use different features of the grid to demonstrate most, if not all, of the available features.