Data order in seaborn heatmap from pivot
问题 So I have a heatmap created using seaborn revels = rd.pivot("Flavour", "Packet number", "Contents") ax = sns.heatmap(revels, annot=True, fmt="d", linewidths=0.4, cmap="YlOrRd") plt.show() which produces There are two things which I want to do however, which I can't for the life of me work out how to do, despite consulting seaborn's helpfile (http://seaborn.pydata.org/generated/seaborn.heatmap.html) The thing I want to do is order the flavours differently. Despite the order being inputted in