<div dir="ltr"><div>The error message means you have an old version of matplotlib. Inferno was added in version 1.5. We are currently at verson 2.2.1 (supposedly will be released today?). I would also wonder if your install of numpy is old as well. Chances are, you are hitting on some old forgotten bug. Could you try updating your packages?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 13, 2018 at 6:49 AM, phanids <span dir="ltr"><<a href="mailto:phanikumar.ds@gmail.com" target="_blank">phanikumar.ds@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Adrien,<br>
<br>
Thanks a lot. I tried your suggestion and initial got<br>
<br>
root@phani:/home/pi/<wbr>SampleExample# python Trial1.py<br>
Traceback (most recent call last):<br>
  File "Trial1.py", line 46, in <module><br>
    surf = ax.plot_surface(xx, yy, zz, cmap="inferno")<br>
  File "/usr/lib/python2.7/dist-<wbr>packages/mpl_toolkits/mplot3d/<wbr>axes3d.py",<br>
line 1637, in plot_surface<br>
    polyc = art3d.Poly3DCollection(polys, *args, **kwargs)<br>
  File "/usr/lib/python2.7/dist-<wbr>packages/mpl_toolkits/mplot3d/<wbr>art3d.py",<br>
line 476, in __init__<br>
    PolyCollection.__init__(self, verts, *args, **kwargs)<br>
  File "/usr/lib/python2.7/dist-<wbr>packages/matplotlib/<wbr>collections.py", line<br>
799, in __init__<br>
    Collection.__init__(self, **kwargs)<br>
  File "/usr/lib/python2.7/dist-<wbr>packages/matplotlib/<wbr>collections.py", line<br>
107, in __init__<br>
    cm.ScalarMappable.__init__(<wbr>self, norm, cmap)<br>
  File "/usr/lib/python2.7/dist-<wbr>packages/matplotlib/cm.py", line 197, in<br>
__init__<br>
    self.cmap = get_cmap(cmap)<br>
  File "/usr/lib/python2.7/dist-<wbr>packages/matplotlib/cm.py", line 163, in<br>
get_cmap<br>
    % (name, ', '.join(cmap_d.keys())))<br>
ValueError: Colormap inferno is not recognized. Possible values are:<br>
Spectral, summer, coolwarm, Wistia_r, pink_r, Set1, Set2, Set3, brg_r,<br>
Dark2, prism, PuOr_r, afmhot_r, terrain_r, PuBuGn_r, RdPu, gist_ncar_r,<br>
gist_yarg_r, Dark2_r, YlGnBu, RdYlBu, hot_r, gist_rainbow_r, gist_stern,<br>
PuBu_r, cool_r, cool, gray, copper_r, Greens_r, GnBu, gist_ncar, spring_r,<br>
gist_rainbow, gist_heat_r, Wistia, OrRd_r, CMRmap, bone, gist_stern_r,<br>
RdYlGn, Pastel2_r, spring, terrain, YlOrRd_r, Set2_r, winter_r, PuBu,<br>
RdGy_r, spectral, rainbow, flag_r, jet_r, RdPu_r, gist_yarg, BuGn, Paired_r,<br>
hsv_r, bwr, cubehelix, Greens, PRGn, gist_heat, spectral_r, Paired, hsv,<br>
Oranges_r, prism_r, Pastel2, Pastel1_r, Pastel1, gray_r, jet, Spectral_r,<br>
gnuplot2_r, gist_earth, YlGnBu_r, copper, gist_earth_r, Set3_r, OrRd,<br>
gnuplot_r, ocean_r, brg, gnuplot2, PuRd_r, bone_r, BuPu, Oranges, RdYlGn_r,<br>
PiYG, CMRmap_r, YlGn, binary_r, gist_gray_r, Accent, BuPu_r, gist_gray,<br>
flag, bwr_r, RdBu_r, BrBG, Reds, Set1_r, summer_r, GnBu_r, BrBG_r, Reds_r,<br>
RdGy, PuRd, Accent_r, Blues, autumn_r, autumn, cubehelix_r, nipy_spectral_r,<br>
ocean, PRGn_r, Greys_r, pink, binary, winter, gnuplot, RdYlBu_r, hot,<br>
YlOrBr, coolwarm_r, rainbow_r, Purples_r, PiYG_r, YlGn_r, Blues_r, YlOrBr_r,<br>
seismic, Purples, seismic_r, RdBu, Greys, BuGn_r, YlOrRd, PuOr, PuBuGn,<br>
nipy_spectral, afmhot<br>
root@bitscope:/home/pi/<wbr>SampleExample#<br>
<br>
So I thought the color scheme "inferno" is not supported (or may be not<br>
installed in my pi). So I changed it to "coolwarm" and I see the image as<br>
below.<br>
<br>
<<a href="http://matplotlib.1069221.n5.nabble.com/file/t5142/plasma.png" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.<wbr>nabble.com/file/t5142/plasma.<wbr>png</a>><br>
<br>
Though this is way better than my initial version, still I see only 2 color<br>
combination... may be I need to check with color schemes provided in the<br>
error message.<br>
<br>
Thanks a lot any way. Also let me know if you think any suitable color<br>
scheme for this kind of gradient.<br>
<br>
Will check with you on other technical questions after I finish this.<br>
<br>
Thanks again,<br>
<br>
With best regards,<br>
Phani.<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://matplotlib.1069221.n5.nabble.com/matplotlib-devel-f28077.html" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.<wbr>nabble.com/matplotlib-devel-<wbr>f28077.html</a><br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Matplotlib-devel mailing list<br>
<a href="mailto:Matplotlib-devel@python.org">Matplotlib-devel@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-devel" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/matplotlib-<wbr>devel</a><br>
</div></div></blockquote></div><br></div>