On Sat, Sep 26, 2009 at 8:27 PM, Dr. Phillip M. Feldman
<[email protected]> 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.

We  do.  plt.register_cmap works for me with SVN HEAD and it looks
like it's present in 0.99.  You probably just have an older version,
as register_cmap is a recent addition.  What version of matplotlib do
you have installed?

python -c 'import matplotlib;print matplotlib.__version__'

Try updating.  That should fix it.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to