text_plain_output_2.png application_vnd.jupyter.stderr_output_1.png
import matplotlib.pyplot as plt
colormap = plt.cm.get_cmap('Greens')
fig, ax = plt.subplots(figsize=(12, 3))
plot = ax.pcolor(sales_salary.T, cmap=colormap, edgecolor='black')
ax.set_xlabel('sales')
ax.set_xticks(np.arange(len(sales_salary.index.values)) + 0.5)
ax.set_xticklabels(sales_salary.index.values)
ax.set_ylabel('salary')
ax.set_yticks(np.arange(len(sales_salary.columns.values)) + 0.5)
ax.set_yticklabels(sales_salary.columns.values)
cbar = fig.colorbar(plot)
cbar.ax.set_ylabel('quantity', rotation=360)
cbar.ax.get_yaxis().labelpad = 25