Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

seaborn pairplot label rotation

g = sn.pairplot(dfsub.sample(50), kind="scatter", hue=target)
for ax in g.axes.flatten():
    # rotate x axis labels
    ax.set_xlabel(ax.get_xlabel(), rotation = 90)
    # rotate y axis labels
    ax.set_ylabel(ax.get_ylabel(), rotation = 0)
    # set y labels alignment
    ax.yaxis.get_label().set_horizontalalignment('right')
Comment

PREVIOUS NEXT
Code Example
Python :: python write array to file 
Python :: python split range equally 
Python :: how to locate image using pyautogui 
Python :: find all text in site python 
Python :: np float to int 
Python :: python Key–value database 
Python :: python opencv write text on image 
Python :: python seaborn lmplot add title 
Python :: discord.py status 
Python :: python str replace specifiek index 
Python :: os get current directory 
Python :: python - remove scientific notation 
Python :: log base 2 python 
Python :: Cool codes for Python 
Python :: how to ask for input in python 
Python :: django how to set a navbar active 
Python :: spress warnings selenium python 
Python :: pandas plot xlabel 
Python :: generate a list of random non repeated numbers python 
Python :: converting string array to int array python 
Python :: python f-string format date 
Python :: how to save a model and reuse fast ai 
Python :: dictionaries to http data python 
Python :: selenium page down key python 
Python :: how to return the derivative of a function in python 
Python :: como eliminar palabras repetidos de una lista python 
Python :: install postgres for python mac 
Python :: python get last modification time of file 
Python :: python generate secret key 
Python :: postgres python 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =