enthought / enthought/chaco

Allow colormap as string argument

Open
#541 0 comments 0 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
Python
Stars
305
Forks
97
PR merge metrics
No merged PRs in 30d

Description

Plot.img_plot requires supplying a color map instance. It's convenient (à la matplotlib) to instead be able to specify a default color map as a string name. `color_map_name_dict` already defines a mapping from string name to color map function in `chaco.default_colormaps`.

This seems like an easy patch if limited only to `img_plot`, but might be more work to handle for all other plot helpers on `Plot` since the parsing of keyword arguments does not appear to be handled consistently.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.