Wrapper for seaborn to plot categorical heatmaps. Tested with seaborn version 0.8.1
.
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
If you are behind a firewall try:
pip install git+https://github.com/schlegelp/catheat@master
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()
This code is under GNU GPL V3