Python package containing pretty colour palettes. This package is based on the R implementation available at github.com/nrennie/PrettyCols. The Python implementation of {PrettyCols} is based on the code from the {MetBrewer} package.
Install using pip
from GitHub:
pip install git+https://github.com/nrennie/PrettyPyCols.git#egg=PrettyCols
Then load the package (and matplotlib
):
import PrettyCols as pc
import matplotlib.pyplot as plt
colors = pc.prettycols(name="Bright", n=3, palette_type="discrete")
x = ['A', 'B', 'C']
value = [1, 2, 3]
plt.bar(x, value, color=colors)
plt.show()