Skip to contents

You can now also use {PrettyCols} palettes with your Python plots.

Installation

Install the package under the Python/ directory directly:

python setup.py install

or via pip:

pip install .

or place the file into your source directory.

Using with matplotlib

import prettycols
import matplotlib.pyplot as plt

colors = pretty_cols(name="Bright", n=3, palette_type="discrete")
x = ['A', 'B', 'C']
value = [1, 2, 3]
plt.bar(x, value, color=colors)
plt.show()