Skip to content

Latest commit

 

History

History
executable file
·
44 lines (30 loc) · 1.3 KB

README.md

File metadata and controls

executable file
·
44 lines (30 loc) · 1.3 KB

catheat

Wrapper for seaborn to plot categorical heatmaps. Tested with seaborn version 0.8.1.

Installation

I recommend using Python Packaging Index (PIP) to install. First, get PIP and then run in terminal:

pip install git+https://github.com/schlegelp/catheat@master

This command should also work to update the package.

If your default distribution is Python 2, you have to explicitly tell PIP to install for Python 3:

pip3 install git+https://github.com/schlegelp/catheat@master

Dependencies:

Quickstart:

Plot a simple categorical heatmap

import catheat
import seaborn as sns

# Get an example dataset from seaborn
tips = sns.load_dataset('tips')

# Plot the categorical columns as heatmap
ax = catheat.heatmap(tips[['sex','smoker','day','time','size']],
                     palette='Paired')

plt.show()

License:

This code is under GNU GPL V3