On Thu, Oct 1, 2015 at 9:40 AM, Thomas Caswell <tcasw...@gmail.com> wrote:
> Have a look at how cmocean (https://github.com/matplotlib/cmocean) works > under the hood. > > I think the options are: > - use a module to supply your color maps (from my_cmap_collection > import my_cmap) and then pass those objects through to the functions > - have your module call the register code on import (or on calling a > helper function which call the registration code) so that you can simply > pass the string name through and `get_cmap` will do the right thing. > > Tom > FWIW -- this second option is exactly what I do for custom colormaps and Axes scales. https://github.com/Geosyntec/wqio/blob/master/wqio/utils/__init__.py#L10
------------------------------------------------------------------------------
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users