Skip to content

Python colorspace implementation. Documentation available on https://retostauffer.github.io/python-colorspace/. The latest release is available via the Python Package Index (PyPI) via https://pypi.org/project/colorspace/

License

Notifications You must be signed in to change notification settings

retostauffer/python-colorspace

Repository files navigation

python-colorspace

A Python toolbox for manipulating and assessing colors and palettes

Documentation Examples Testing Coverage status

The package provides a Python 3 version of the R colorspace package comprising:

  • Color spaces: Conversions and manipulations of RGB, HSV, CIEXYZ, CIELAB, CIELUV, HCL etc.
  • HCL-based palettes: Qualitative, sequential, and diverging color maps constructed using the HCL (hue-chroma-luminance) color model. These can closely approximate palettes from ColorBrewer.org, CARTO, viridis, or Crameri's scientific color maps.
  • matplotlib color maps: Integration with matplotlib for use in standard plotting functions.
  • Palette visualization: Plotting palettes in color swatches, spectrums of HCL and/or RGB trajectories, and illustrations of typical data visualizations.
  • Interactive palette chooser: App for exploring, modifying, and picking color palettes interactively.
  • Color vision deficiency: Emulation of different kinds of color blindness.
  • Utilities: Various color manipulations including tools to desaturate, lighten, darken, adjust the transparency, or compute the contrast ratio.

Links

Contributors

  • Reto Stauffer ORCID iD, (principal author & maintainer), Universität Innsbruck, Austria
  • Achim Zeileis ORCID iD, Universität Innsbruck, Austria

We would like to thank the following individuals for their contributions to the review process for this software, as part of the submission to The Journal of Open Source Software (JOSS): Julia Romanowska @jromanowska, Editor ORCID iD, Daniel S. Katz @danielskatz, Editor ORCID iD, David Reagan @dmreagan, Reviewer ORCID iD, Andrew Ting @hollowscene, Reviewer.

Furthermore, the Python package implements the functionality from the R package that is co-written with Ross Ihaka, Paul Murrell ORCID iD, Kurt Hornik ORCID iD, Jason C. Fisher ORCID iD, Claus O. Wilke ORCID iD, Claire D. McWhite ORCID iD.

Citations

Stauffer, R. and Zeileis A. (2024). "colorspace: A Python Toolbox for Manipulating and Assessing Colors and Palettes." The Journal of Open Source Software, 9(102), 7120, doi:10.21105/joss.07120.

Stauffer, R. and Zeileis, A. (2024). "colorspace: A Python Toolbox for Manipulating and Assessing Colors and Palettes (v1.0.0)". Zenodo. doi:10.5281/zenodo.14004295.

Development notes

Community guidelines

If you encountery any bugs or issues, or are interested in contributing to Python colorspace, please have a look at our Community guidelines.

Test and development

More detailed information on how to run automated tests, create coverage reports, test examples and render the documentation can be found on our Installation page.

GitHub Action integration (CI)

Additional notes about development and deployment are documented in GITHUBACTIONS.md.

About

Python colorspace implementation. Documentation available on https://retostauffer.github.io/python-colorspace/. The latest release is available via the Python Package Index (PyPI) via https://pypi.org/project/colorspace/

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages