[Matplotlib-users] reverse axis on colorbar, and showing under- and over-colors

2010-10-26 Thread Maarten Sneep
Hi, My searching for reverse in the documentation and gallery came up empty, so I'll try it here: I have an image with cloud pressures, 1000 at the surface, 200 at the top of the atmosphere. I'd like to reverse the axis, i.e. 1000 at the bottom of the scale, 200 at the top. How should I approach

Re: [Matplotlib-users] reverse axis on colorbar, and showing under- and over-colors

2010-10-26 Thread Maarten Sneep
Hi, I did solve my own question. For posterity, and perhaps for a more elegant solution, I post my solution here. On Tue, 2010-10-26 at 10:56 +0200, Maarten Sneep wrote: I have an image with cloud pressures, 1000 at the surface, 200 at the top of the atmosphere. I'd like to reverse the axis

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-25 Thread Maarten Sneep
On Fri, 2010-10-22 at 13:39 -0500, Ryan May wrote: Thanks for that. This actually led me here: http://en.wikipedia.org/wiki/Histogram which gives a bunch of different ways to estimate the number of bins/binsize. It might be worth looking at one of these in general. However, ironically enough,

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Maarten Sneep
On Fri, 2010-10-22 at 11:12 -0500, Ryan May wrote: On Fri, Oct 22, 2010 at 9:40 AM, Christopher Fonnesbeck If there are only 7 possible values of the data, which are evenly-spaced, it should probably not go in and create more than 6 bins as the default behavior. I know I can specify bins by