- Notifications
You must be signed in to change notification settings - Fork7
Plot categorical heatmaps with seaborn
License
NotificationsYou must be signed in to change notification settings
schlegelp/catheat
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Wrapper forseaborn to plot categorical heatmaps. Tested with seaborn version0.8.1
.
I recommend usingPython Packaging Index (PIP) to install.First, getPIP 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 tellPIP to install for Python 3:
pip3 install git+https://github.com/schlegelp/catheat@master
importcatheatimportseabornassns# Get an example dataset from seaborntips=sns.load_dataset('tips')# Plot the categorical columns as heatmapax=catheat.heatmap(tips[['sex','smoker','day','time','size']],palette='Paired')plt.show()
This code is under GNU GPL V3