Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

sns legend outside

import matplotlib.pyplot as plt
import seaborn as sns
sns.set(style="darkgrid")

# Load the long-form example gammas dataset
gammas = sns.load_dataset("gammas")

# Plot the response with standard error
sns.tsplot(data=gammas, time="timepoint", unit="subject",
           condition="ROI", value="BOLD signal")

# Put the legend out of the figure
plt.legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.)
Comment

PREVIOUS NEXT
Code Example
Python :: run sql query on pandas dataframe 
Python :: hide password input tkinter 
Python :: make pandas df from np array 
Python :: how to subtract dates in python 
Python :: how to know where python is installed on windows 
Python :: django queryset get all distinct 
Python :: how to create data dictionary in python using keys and values 
Python :: remove n from string python 
Python :: roll longitude about zero 
Python :: numpy print options 
Python :: python clock 
Python :: python open folder in explorer 
Python :: how to install python 3.6 ubuntu 
Python :: pandas reorder columns 
Python :: python datetime date only 
Python :: iterar una lista en python 
Python :: createview 
Python :: classes in python with self parameter 
Python :: convert image to matrix python 
Python :: how to check if mouse is over a rect in pygame 
Python :: write number of lines in file python 
Python :: opencv skip video frames 
Python :: libreoffice add row at the end of table 
Python :: mongodb group by having 
Python :: find python path cmd 
Python :: pandas query on datetime 
Python :: how to get seconds from datetime in python 
Python :: except as exception: 
Python :: real time crypto prices python 
Python :: how to use python to sleep if the user is not using the system 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =