Created
February 8, 2020 22:44
-
-
Save le-dawg/778321d7492a1a0415d6c1f9869d7c17 to your computer and use it in GitHub Desktop.
Fix for Pyplot/Matlplotlib heatmap clipping
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
# fix for mpl bug that cuts off/clips/clipping top/bottom of seaborn viz | |
b, t = plt.ylim() # discover the values for bottom and top | |
b += 0.5 # Add 0.5 to the bottom | |
t -= 0.5 # Subtract 0.5 from the top | |
plt.ylim(b, t) # update the ylim(bottom, top) values | |
plt.show() # ta-da! | |
# https://github.com/mwaskom/seaborn/issues/1773 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment