<div dir="ltr">The code used to generate all of the new colormaps is in these repositories:<div><br></div><div><a href="https://github.com/BIDS/colormap">https://github.com/BIDS/colormap</a><br></div><div><a href="https://github.com/matplotlib/viscm">https://github.com/matplotlib/viscm</a><br></div><div><br></div><div>See also the appendix at the bottom of this page:</div><div><br></div><div><a href="http://bids.github.io/colormap/">http://bids.github.io/colormap/</a><br></div><div><br></div><div>As well as Stefan and Nathaniel's talk at this year's scipy:</div><div><br></div><div><a href="https://www.youtube.com/watch?v=xAoljeRJ3lU">https://www.youtube.com/watch?v=xAoljeRJ3lU</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 1, 2015 at 1:42 PM, Carnë Draug <span dir="ltr"><<a href="mailto:carandraug@octave.org" target="_blank">carandraug@octave.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I saw the new default colormap viridis and I was wondering about the<br>
function that was used to generated it.  Looking inside the source,<br>
I only found hardcoded values for a 256 long colormap [1].<br>
<br>
I understand that I can interpolate this to get a colormap of any<br>
length.  However, what I'm really trying to find is the function that<br>
was used to generate those values in the first place.  I'm not so much<br>
interested in the actual python code to do it, my interest is purely the<br>
mathematical model behind it.<br>
<br>
Is this published anywhere?  If not, can anyone tell me where to find<br>
the model?<br>
<br>
Thank you<br>
Carnë<br>
<br>
[1] <a href="https://github.com/matplotlib/matplotlib/blob/b9710e674878799f9b7279802291a3d245b36e08/lib/matplotlib/_cm_listed.py#L774" rel="noreferrer" target="_blank">https://github.com/matplotlib/matplotlib/blob/b9710e674878799f9b7279802291a3d245b36e08/lib/matplotlib/_cm_listed.py#L774</a><br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org">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><br></div>