Couldn't you also do this by providing a short colourmap instead of
fiddling the norms?
- Paul
···
On Thu, Jan 31, 2008 at 08:38:35AM +0100, Rob Hetland wrote:
I was just working with a student to do this. It is straightforward
(using norms, as Eric suggests), but not short. I think it would be
good to include wrappers for creating these norms to MPL.
The advantage is then it works for everything: pcolor, scatter, etc.
Paul Kienzle wrote:
I was just working with a student to do this. It is straightforward (using norms, as Eric suggests), but not short. I think it would be good to include wrappers for creating these norms to MPL.
The advantage is then it works for everything: pcolor, scatter, etc.
Couldn't you also do this by providing a short colourmap instead of
fiddling the norms?
Yes, but it is not as general a solution. The BoundaryNorm that I will add allows arbitrary color boundaries, just as the specification of levels in contourf does.
Eric
···
On Thu, Jan 31, 2008 at 08:38:35AM +0100, Rob Hetland wrote:
- Paul