Published October 28, 2024 | Version v1.0.0
Software Open

colorspace: A Python Toolbox for Manipulating and Assessing Colors and Palettes

  • 1. Department of Statistics, Universität Innsbruck, Austria
  • 2. Digital Science Center, Universität Innsbruck, Austria

Description

First full major relase of the Python colorspace package providing a toolbox for mapping between different color spaces which can then be used to generate a wide range of perceptually-based color palettes for qualitative or quantitative (sequential or diverging) information. These palettes (as well as any other sets of colors) can be visualized, assessed, and manipulated in various ways, e.g., by color swatches, emulating the effects of color vision deficiencies, or depicting the perceptual properties. Finally, colorspace integrates seamlessly with standard Python graphics packages like matplotlib, seaborn, and plotly, making it a valuable resource for both developers and practitioners to customize, assess, and implement color palettes in their data visualization workflows.   

Files

retostauffer/python-colorspace-v1.0.0.zip

Files (6.0 MB)

Name Size Download all
md5:af93262d3a2eb3239087c8e178db0f4b
6.0 MB Preview Download

Additional details

Related works

Cites
Publication: 10.18637/jss.v096.i01 (DOI)
Compiles
Other: https://hclwizard.org/ (URL)
Is version of
Software: https://cran.r-project.org/package=colorspace (URL)

Software

Repository URL
https://github.com/retostauffer/python-colorspace
Programming language
Python
Development Status
Active

References

  • Brewer, C. A. (1999). Color use guidelines for data representation. Proceedings of the Section on Statistical Graphics, American Statistical Association, 55–60.
  • Cokelaer, T. (2024). Colormap (Version v1.1.0). Python Package Index (PyPI). https://pypi.org/project/colormap/
  • Crameri, F., Shephard, G. E., and Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11(5444), 1–10. https://doi.org/10.1038/s41467-020-19160-7
  • Davis, M. (2023). palettable: Color palettes for Python (Version v3.3.3). Python Package Index (PyPI). https://pypi.org/project/palettable/
  • Harris, C. R., Millman, K. J., van der Walt, S. J., Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor, J., Berg, S., Smith, N. J., Kern, R., Picus, M., Hoyer, S., van Kerkwijk, M. H., Brett, M., Haldane, A., del Río, J. F., Wiebe, M., Peterson, P., … Oliphant, T. E. (2020). Array programming with NumPy. Nature, 585(7825), 357–362. https://doi.org/10.1038/s41586-020-2649-2
  • Hunter, J. D. (2007). Matplotlib: A 2D graphics environment. Computing in Science and Engineering, 9(3), 90–95. https://doi.org/10.1109/mcse.2007.55
  • Hunter, J. D., Dale, D., Firing, E., Droettboom, M., and the Matplotlib Development Team. (2017). What's new in matplotlib 2.0, changes to the default style. https://matplotlib.org/stable/users/prev_whats_new/dflt_style_changes.html
  • Ihaka, R. (2003). Colour for presentation graphics. In K. Hornik, F. Leisch, and A. Zeileis (Eds.), Proceedings of the 3rd international workshop on distributed statistical computing, vienna, austria. https://www.R-project.org/conferences/DSC-2003/Proceedings/Ihaka.pdf
  • Klein, A., Wallkötter, S., Silvester, S., Rynes, A., actions-user, Müller, P., Nunez-Iglesias, J., Harfouche, M., Schrangl, L., Dennis, Lee, A., Pandede, McCormick, M., OrganicIrradiation, Rai, A., Ladegaard, A., van Kemenade, H., Smith, T. D., Vaillant, G., … Singleton, J. (2024). Imageio/imageio (Version v2.34.2). Zenodo. https://doi.org/10.5281/zenodo.12514964
  • Machado, G. M., Oliviera, M. M., and Fernandes, L. A. F. (2009). A physiologically-based model for simulation of color vision deficiency. IEEE Transactions on Visualization and Computer Graphics, 15(6), 1291–1298. https://doi.org/10.1109/tvcg.2009.113
  • Patel, P. (2024). Colormaps (Version v0.4.2). Python Package Index (PyPI). https://pypi.org/project/colormaps/
  • Rollo, C. (2024). cmcrameri: Python wrapper around Fabio Crameri's perceptually uniform col- ormaps (Version v1.9). Python Package Index (PyPI). https://pypi.org/project/cmcrameri/
  • The Pandas Development Team. (2024). pandas-Dev/Pandas: pandas (Version v2.2.2). Zenodo. https://doi.org/10.5281/zenodo.10957263
  • Tufte, E. (1990). Envisioning information. Graphics Press.
  • Ware, C. (2004). Color. In Information visualization: Perception for design (pp. 103–149). Morgan Kaufmann Publishers Inc.
  • Waskom, M. L. (2021). seaborn: Statistical data visualization. Journal of Open Source Software, 6(60), 3021. https://doi.org/10.21105/joss.03021
  • Wilke, C. O. (2019). Fundamentals of data visualization. O'Reilly Media. ISBN: 1492031089
  • Zeileis, A., Fisher, J. C., Hornik, K., Ihaka, R., McWhite, C., Murrell, P., Stauffer, R., and Wilke, C. O. (2020). colorspace: A toolbox for manipulating and assessing colors and palettes. Journal of Statistical Software, 96(1), 1–49. https://doi.org/10.18637/jss.v096.i01