mpschr / catheat

Plot categorical heatmaps with seaborn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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+git://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+git://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

About

Plot categorical heatmaps with seaborn

License:GNU General Public License v3.0


Languages

Language:Python 100.0%