<div dir="ltr">> So colormaps are segmented to e.g. 256 by default, rather than all the input values?<div><br></div><div>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).</div><div><br></div><div>Yes, a PR with that example would be welcome.</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 4, 2018 at 8:58 PM Juan Nunez-Iglesias <<a href="mailto:jni.soma@gmail.com">jni.soma@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On Tue, Jun 5, 2018, at 11:53 AM, Thomas Caswell wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div>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.<br></div>
</div>
</blockquote><div><br></div>
</div><div><div>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?<br></div></div><div>
<div><br></div>
<blockquote type="cite"><div dir="ltr"><div>For the API I am thinking something like<br></div>
<div><br></div>
<div>`im = ax.imshow(..., over_color='r', under_color='b')`<br></div>
<div><br></div>
<div>so that you can control that aspect of the color map from the user API.<br></div>
</div>
</blockquote><div><br></div>
</div><div><div>That's not too bad I guess. =)<br></div>
<div><br></div>
<div>So, to rephrase your position: a PR to the examples gallery would be welcome? =P</div>
</div>

_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>