[Matplotlib-users] HiLo colormap
tcaswell at gmail.com
Sun Jun 10 11:27:10 EDT 2018
> So colormaps are segmented to e.g. 256 by default, rather than all the
Yes, because colormap objects may be re-used with many data sets so can't
know anything about the input values ahead of time (They don't even get to
see the raw data as it has been through a Normalize object first).
Yes, a PR with that example would be welcome.
On Mon, Jun 4, 2018 at 8:58 PM Juan Nunez-Iglesias <jni.soma at gmail.com>
> On Tue, Jun 5, 2018, at 11:53 AM, Thomas Caswell wrote:
> You are going to have a related issue with the color map. It is going to
> take the top/bottom 1/Nth of the range to be marked as over/under which may
> be _more_ that you want to grab. I also think it will grab asymmetrical
> ranges for log scales.
> Ah. Yes this is totally terrible. Very good point. =) So colormaps are
> segmented to e.g. 256 by default, rather than all the input values?
> For the API I am thinking something like
> `im = ax.imshow(..., over_color='r', under_color='b')`
> so that you can control that aspect of the color map from the user API.
> That's not too bad I guess. =)
> So, to rephrase your position: a PR to the examples gallery would be
> welcome? =P
> Matplotlib-users mailing list
> Matplotlib-users at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Matplotlib-users