catheat
catheat copied to clipboard
Plot categorical heatmaps with seaborn
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