It seems that you're using an older version of matplotlib.
register_cmap is available in the current version of mpl, which is
0.99.1. And the example works fine.

While it is best if the documentation states which functionality
became available at which version, unfortunately it is not. If you
want to contribute, it is always welcomed.

-JJ


On Sat, Sep 26, 2009 at 9:27 PM, Dr. Phillip M. Feldman
<pfeld...@verizon.net> wrote:
>
> When I try to import register_cmap from matplotlib, matplotlib.colors, or any
> of the other likely candidate modules in which it might be contained, I get
> a "cannot import" error.  It would be great if the documentation indicated
> how to import this and provided at least one working example.
> --
> View this message in context: 
> http://www.nabble.com/where-does-register_cmap-come-from--tp25630125p25630125.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to