Re: [Matplotlib-users] Editing a colorbar

2010-12-10 Thread Benjamin Root
On Thu, Dec 9, 2010 at 9:01 AM, Ian Harry ian.ha...@astro.cf.ac.uk wrote: Hi all, I am having a problem with manipulating colorbars. I want to take the cm.Blues colorbar and edit it so that the lowest end of the colorbar is light blue instead of white, or in other words I want to remove the

Re: [Matplotlib-users] Editing a colorbar

2010-12-10 Thread Ian Harry
Hi Ben, Thanks for the suggestion, unfortunately I get: Traceback (most recent call last): File spin_bank.py, line 43, in ? newBlues = mcolors.LinearSegmentedColormap.from_list(newBlues, cm.Blues._lut[cm.Blues.N/3:-3, :-1], 256) AttributeError: class LinearSegmentedColormap has no

Re: [Matplotlib-users] Editing a colorbar

2010-12-10 Thread Benjamin Root
On Fri, Dec 10, 2010 at 11:00 AM, Ian Harry ian.ha...@astro.cf.ac.ukwrote: Hi Ben, Thanks for the suggestion, unfortunately I get: Traceback (most recent call last): File spin_bank.py, line 43, in ? newBlues = mcolors.LinearSegmentedColormap.from_list(newBlues,

[Matplotlib-users] Editing a colorbar

2010-12-09 Thread Ian Harry
Hi all, I am having a problem with manipulating colorbars. I want to take the cm.Blues colorbar and edit it so that the lowest end of the colorbar is light blue instead of white, or in other words I want to remove the lightest 1/4 of the colorbar and just keep the darker end. Is there any easy