Created
January 7, 2023 21:48
-
-
Save chrisroat/28d4966a190c8ee2b2927ae9654e9677 to your computer and use it in GitHub Desktop.
test47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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