On 2012/11/26 12:18 PM, TP wrote:
> On Monday, November 26, 2012 12:06:40 Eric Firing wrote:
>> I'm glad you found a solution, but my sense is that the problem is that
>> you are trying to make the colormap do the work of the norm.  The
>> colormap is just a set of discrete colors, with a linear mapping to the
>> 0-1 scale (apart from the special under, over, and invalid values).  The
>> norm is for mapping your data to those colors, however you like, by
>> mapping your data to the 0-1 range (again with possible under, over, and
>> invalid values).  Did you consider making a custom norm instead of
>> modifying the colormap?
>
> Yes, I did.
> The problem with the default colormap is that it has not enough colors. I have
> found (I may be wrong) that no norm can change this state of affair. If you 
> are
> able to find a norm to make my example work, i.e. to obtain the middle point 
> in
> blue when large_value is for example 1e10, I am interested.

But how many colors can you actually distinguish on the screen, or in a 
plot?  My impression is that the problem is not lack of colors, but 
rather mapping to the color you want. There is no reason that having a 
value in your *data* of 1e10 has to affect how numbers in your data over 
a "normal" range are mapped.

You are trying to illustrate the problem with an example using 3 colors, 
so how can the number of colors in the colormap be the fundamental 
limitation?

Eric

>
> TP
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to