Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pyplot legend outside figure

l1 = plt.legend(bbox_to_anchor=(1.04,1), borderaxespad=0)
l2 = plt.legend(bbox_to_anchor=(1.04,0), loc="lower left", borderaxespad=0)
l3 = plt.legend(bbox_to_anchor=(1.04,0.5), loc="center left", borderaxespad=0)
l4 = plt.legend(bbox_to_anchor=(0,1.02,1,0.2), loc="lower left",
                mode="expand", borderaxespad=0, ncol=3)
l5 = plt.legend(bbox_to_anchor=(1,0), loc="lower right", 
                bbox_transform=fig.transFigure, ncol=3)
l6 = plt.legend(bbox_to_anchor=(0.4,0.8), loc="upper right")
Comment

PREVIOUS NEXT
Code Example
Python :: sort a pandas dataframe based on date and time 
Python :: printing hollow triangle in python 
Python :: wait for page to load selenium python 
Python :: how to convert index to column in pandas 
Python :: in pandas series hot to count the numer of appearences 
Python :: matplotlib 3.0.3 wheel file 
Python :: pandas split train test 
Python :: how to save model to a file python 
Python :: rotation points space python 
Python :: changes not showing on website server odoo 
Python :: python code for system of odes 
Python :: python dir all files 
Python :: pandas join two columns 
Python :: pandas filter non nan 
Python :: upload multiple files streamlit 
Python :: matplotlib pie label size 
Python :: TypeError: Unicode-objects must be encoded before hashing 
Python :: only int validator PyQt 
Python :: pandas select column by index 
Python :: replace commas with spaces python 
Python :: tf tensor from numpy 
Python :: python opencv create new image 
Python :: fill pixels with zeros python opencv 
Python :: python search for string in file 
Python :: how to factorise an expression in python 
Python :: python convert base 
Python :: perimeter of semicircle formula 
Python :: python request example 
Python :: python get city name from IP 
Python :: emacs region indent python 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =