Giter Club home page Giter Club logo

Comments (3)

jbednar avatar jbednar commented on May 21, 2024

Colorcet's colormaps are already available from Matplotlib's get_cmap, but prefixed with "cet_":

from matplotlib.cm import get_cmap
import colorcet

get_cmap("cet_fire")
<matplotlib.colors.LinearSegmentedColormap at 0x11d7c2c50>

from colorcet.

banesullivan avatar banesullivan commented on May 21, 2024

Interesting... I did not realize that was possible. Did I miss this in the docs?

from colorcet.

jbednar avatar jbednar commented on May 21, 2024

Third paragraph of http://colorcet.pyviz.org/user_guide/index mentions:

The same colormaps are also registered with matplotlib's string-based dictionary with the prefix cet_, making them available by name within various matplotlib functions (e.g. cet_linear_kryw_0_100_c71, cet_linear_kryw_0_100_c71_r, cet_fire, or cet_fire_r).

But it doesn't specifically mention get_cmap, so we'd happily accept a PR to explain it better. Basically, if you can think of how to make sure no one else misses it, please do! :-)

If you have enough time to make matplotlib and bokeh examples for the user guide, illustrating the various ways to use them, we'd love to have those too!

from colorcet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.