where does register_cmap come from?

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.

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

···

On Sat, Sep 26, 2009 at 8:27 PM, Dr. Phillip M. Feldman <pfeldman@...2440...> 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.

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

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 <pfeldman@...2440...> 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
matplotlib-users List Signup and Options

Ah! I have version 9.98.5. Thanks very much!

Phillip

Ryan May wrote:

···

On Sat, Sep 26, 2009 at 8:27 PM, Dr. Phillip M. Feldman > <pfeldman@...2440...> 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

I downloaded the latest version of EPD and installed, and register_cmap now works.

Thanks!

Re. working on the documentation: I'd be happy to contribute. How do I edit the docs?

Phillip

Jae-Joon Lee wrote:

···

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 > <pfeldman@...2440...> 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
matplotlib-users List Signup and Options

While it is best to submit a patch against svn,

http://matplotlib.sourceforge.net/faq/howto_faq.html?highlight=contribute#contribute-to-matplotlib-documentation

For simple changes, you may just post those changes in this mailing list.

Regards,

-JJ

···

On Sat, Sep 26, 2009 at 11:41 PM, Phillip M. Feldman <pfeldman@...2440...> wrote:

Re. working on the documentation: I'd be happy to contribute. How do I edit
the docs?