1import matplotlib.pyplot as plt
2import seaborn as sns
3sns.set(style="darkgrid")
4
5# Load the long-form example gammas dataset
6gammas = sns.load_dataset("gammas")
7
8# Plot the response with standard error
9sns.tsplot(data=gammas, time="timepoint", unit="subject",
10 condition="ROI", value="BOLD signal")
11
12# Put the legend out of the figure
13plt.legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.)