The Python colorspace package provides 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, the color palettes generated by the package can be easily integrated into standard visualization workflows in Python, e.g., using matplotlib, seaborn, or plotly.
翻译:Python colorspace软件包提供了一个工具箱,用于在不同色彩空间之间进行映射,进而可生成适用于定性或定量(顺序型或发散型)信息的各类基于感知的调色板。这些调色板(以及任何其他颜色集合)可通过多种方式进行可视化、评估和操作,例如通过色板展示、模拟色觉缺陷效应或描绘感知特性。最后,该软件包生成的调色板能够轻松集成到Python的标准可视化工作流程中,例如使用matplotlib、seaborn或plotly。