[Matplotlib-users] Integer equal-width bins for histograms

2014-05-29 Thread Antony Lee
Hi, When histogramming integer data, is there an easy way to tell matplotlib that I want a certain number of bins, and each bin to cover an equal number of integers (except possibly the last one)? (in order to avoid having some bins higher than others merely because they cover more integers) I kno

[Matplotlib-users] Shrink colorbar with AxesGrid and basemap

2014-05-29 Thread Martin De Kauwe
Hi, I am using Basemap to create a grid of 12 images of the world (months of the year), but I want to have a single colorbar underneath the plots. I have managed this successfully but I can't manage to shrink the colorbar width. Currently it extends the entire width of the plotting window, whereas