this is a great heatmap: http://graphics.wsj.com/infectious-diseases-and-vaccines/ I'm trying to do something similar in Seaborn, and wondered if I could take a custom color palette like turn it into a cmap, and then use center in order to skew it?
import seaborn as sns
from matplotlib import pyplot as plt
mypalette = ['#e8f0ff', '#51abff', '#12b74c', '#fffb16', '#ffc044', '#ff9400', '#ff6a00', '#c13300', '#b20c0c']
sns.palplot(sns.color_palette(mypalette))
The closest I can get is something like
plt.figure('hmap')
flights = sns.load_dataset("flights")
flights = flights.pivot("month", "year", "passengers")
ax = sns.heatmap(flights, cmap = mypalette, center = 350)
of course, this palette lacks a gradient. Apologies for the dataset, I realise it isn't skewed, but seemed like a simple one to use.