n">cmap</span><span class="o">=</span><span
        class="s1">&#39;nipy_spectral&#39;</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;Returns a function that maps each index in 0, 1, ... N-1 to a distinct</span>
<span class="sd">    RGB color.</span>

<span class="sd">    :param N: The size of the desired colormap</span>
<span class="sd">    :param cmap: The name of a ```matplotlib`` colormap.</span>
<span class="sd">    :return: A normalized colormap for N values</span>
<span class=