Skip to content

nrennie/PrettyPyCols

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrettyCols

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.

Installation

Install using pip from GitHub:

pip install git+https://github.com/nrennie/PrettyPyCols.git#egg=PrettyCols

Using with matplotlib

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()

About

Python package containing pretty colour palettes.

Topics

Resources

License

Stars

Watchers

Forks

Languages