When I try to run the sample custom colormap code provided at http://matplotlib.sourceforge.net/examples/pylab_examples/custom_cmap.html , I get the following error message:
AttributeError Traceback (most recent call last) colormaps.py in <module>() 114 115 blue_red2 = LinearSegmentedColormap('BlueRed2', cdict2) --> 116 plt.register_cmap(cmap=blue_red2) 117 118 # Third, for LinearSegmentedColormap only, AttributeError: 'module' object has no attribute 'register_cmap' WARNING: Failure executing file: <colormaps.py> -- View this message in context: http://www.nabble.com/sample-colormap-code-is-broken-tp25630022p25630022.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users