Skip to content

Instantly share code, notes, and snippets.

@chrisroat
Created January 7, 2023 21:46
Show Gist options
  • Save chrisroat/ad24e7ff0dbefba01be804fbee273107 to your computer and use it in GitHub Desktop.
Save chrisroat/ad24e7ff0dbefba01be804fbee273107 to your computer and use it in GitHub Desktop.
test47
fig, ax = plt.subplots(figsize=(8, 20))
ax = sns.heatmap(data, cmap="Blues", ax=ax, cbar=False, xticklabels=names)
ax.xaxis.tick_top()
ax.set_ylabel("Ballot Count for Combination")
plt.xticks(rotation=90)
plt.yticks(ticks=yticks, labels=ytick_labels, fontsize=5)
for border in borders:
ax.axhline(border, color="white", lw=0.2)
for x in range(len(names)):
ax.axvline(x, color="white", lw=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment