Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pairplot legend position

g = sns.pairplot(iris, hue='species', palette='husl', markers='d', size=2.5, plot_kws=
    {
    "s":40,
    "alpha":1.0,
    'lw':0.5,
    'edgecolor':'k'
    })

handles = g._legend_data.values()
labels = g._legend_data.keys()
g.fig.legend(handles=handles, labels=labels, loc='upper center', ncol=1)
g.fig.legend(handles=handles, labels=labels, loc='lower center', ncol=3)
g.fig.legend(handles=handles, labels=labels, loc='upper left', ncol=3)
g.fig.subplots_adjust(top=0.92, bottom=0.08)
Comment

PREVIOUS NEXT
Code Example
Python :: python weekly aggreation string time 
Python :: python sorted vs sort 
Python :: pandas dataframe how to store 
Python :: square root in python numpy 
Python :: splitting Feature and target using iloc 
Python :: FizzBuzz in Python Using Lambda 
Python :: allowed_hosts error ecs django 
Python :: pyttsx3 Running a driver event loop 
Python :: python get currentmonth 
Python :: modern ui python 
Python :: matplotlib insert small subplot into subplot 
Python :: accessing multiple elements from the list 
Python :: how to return and use a single object in custom template filters django 
Python :: df .isna percentage 
Python :: meter replacement application 
Python :: Algorithms and Data Structures in Python (INTERVIEW Q&A) 
Python :: to iterate across information on same nest 
Python :: Elasticsearch scroll with Parallelism r 
Python :: Python NumPy squeeze function Example with axis 
Python :: seasonal plot python 
Python :: kaggle replace 
Python :: Python NumPy block Function Example by using simple array 
Python :: Python NumPy insert Function Example Working with Scalars 
Python :: codeforces problem 580A 
Python :: NumPy bitwise_and Example When inputs are numbers 
Python :: NumPy bitwise_xor Code When inputs are numbers 
Python :: http://172.18.0.128:8114/ 
Python :: python list and numpy array 
Python :: tuple python !g 
Python :: python selectionsort 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =