dhaitz/mplcyberpunk

Add colormaps

laserkelvin opened this issue · 1 comments

Absolutely loving this stylesheet!

One thing I've found that I wanted to do was use some of the cyberpunk colors as linear colormaps, and basically implement some functions that return LinearSegmentedColormap objects for others to use (example attached), in the same kind of way as how palettable gives access to a bunch of colormaps.

c_ramp

In this example I'm using cyan to violet (which actually makes a good sequential colormap), but some of the others like pink and matrix_green in the stylesheet looks like they'd be good candidates too. To make the plot above, I took the hex codes and converted them into normalized RGB values, and used matplotlib.colors.LinearSegementedColormap.from_list to create them.

If you are open to contributions, I could fork/implement this and submit a PR :)

Hi @laserkelvin ,

thanks for your feedback and the suggestion!! I guess using one of matplotlib's built-in colormaps would be a simple solution, e.g. cool:

image

The colors used in the high-lightness colormaps in the Sequential2 section (winter, autumn, spring, cool, ...) seem pretty similar to the default colors in this package