Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

seaborn heatmap parameters

# seaborn heatmap best parameter
plt.figure(figsize=(20,8))
sns.heatmap(corr, vmax=1, vmin=-1, center=0,
			linewidth=.5,square=True, annot = True,
            annot_kws = {'size':8},fmt='.1f', cmap='BrBG_r', ax=ax1,  # ax: use this when using subplot
            cbar_kws = dict(use_gridspec=False,location="top", shrink=0.9)) # cbar_kws: for positioning cbar and "shrink" for reducing cbar size
plt.title('Correlation')
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: how to save bulk create in django 
Python :: letter frequency counter python 
Python :: except as exception: 
Python :: pandas replace zero with blank 
Python :: selenium webdriver 
Python :: python telegram bot send image 
Python :: pip install specific version 
Python :: remove character python 
Python :: python - removeempy space in a cell 
Python :: binomial coefficient 
Python :: pandas apply with multiple arguments 
Python :: python check if number 
Python :: how to copy one dictionary to another in python 
Python :: python dont exit script after print 
Python :: python fernet 
Python :: extract filename from path in python 
Python :: python get computer name 
Python :: how to add value to to interger in python 
Python :: install hydra python 
Python :: Python how to use __gt__ 
Python :: remove first 2 rows in pandas 
Python :: discord.py get guild member list 
Python :: pandas to_csv no index 
Python :: python assers 
Python :: how to change role permissions in discord.py 
Python :: how many days until 2021 
Python :: instagram login with selenium py 
Python :: tkinter new line in text 
Python :: how to run django tests 
Python :: how to use print function in python 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =