| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,14 @@ |
| 1 |
+import seaborn as sns |
|
| 2 |
+import matplotlib.pyplot as plt |
|
| 3 |
+ |
|
| 4 |
+sns.set(style="darkgrid") |
|
| 5 |
+ |
|
| 6 |
+# Load an example dataset with long-form data |
|
| 7 |
+fmri = sns.load_dataset("fmri")
|
|
| 8 |
+ |
|
| 9 |
+# Plot the responses for different events and regions |
|
| 10 |
+sns.lineplot(x="timepoint", y="signal", |
|
| 11 |
+ hue="region", style="event", |
|
| 12 |
+ data=fmri) |
|
| 13 |
+ |
|
| 14 |
+plt.show(); |