Arcadia-Science / arcadia-pycolor

Python package for styling plots according to Arcadia's style guide
MIT License
4 stars 0 forks source link

Add ability to reverse and slice gradients #17

Open mezarque opened 4 months ago

mezarque commented 4 months ago

Gradients should have the ability to be reversed, and reversed gradients should also be registered to matplotlib.

In addition, it would be nice to cut a gradient off at ~80%, for example, and return a new, re-jiggered gradient.

Related to this, it would be cool to have functionality where users can provide a list of colors and a gradient with linearly increasing lightness is automatically generated, with the positions along the gradient being determined by the lightness.

mezarque commented 3 months ago

Gradient reversal is resolved by #20; slicing not yet supported.