You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.The current axis label text defaults to what we gave as input to `sns.scatterplot` (i.e the column headers). We can change this by **adding additional layers** called `plt.xlabel()` and `plt.ylabel()`for the x- and y-axis, respectively. Add these layers to the current plot such that the x-axis is labeled "Age (days)" and the y-axis is labeled "Mean expression".
35
+
1.Add a `plt.ylabel()`layer to the current plot such that the y-axis is labeled "Mean expression".
# Add an plt.ylabel() layers to the current plot such that the y-axis is labeled “Mean expression”.
115
+
plt.ylabel(ylabel = "Mean expression",
116
116
fontsize=20)
117
117
118
-
# Add title label to plot
119
-
plt.title(label = "Mean expression vs Age (Days)",
118
+
# Use the plt.title() layer to add a plot title of your choice.
119
+
# When you add the arguments loc="right" to the plt.title() function, what does it change?
120
+
plt.title(label = "Mean expression by age",
120
121
loc="right")
121
122
```
122
123
123
-
4. Try adding the layer `plt.legend(loc="center right")` to the end of your code. What does this do? How many layers can be added to a plot, in your estimation?
124
+
The title of the plot is now right-aligned.
124
125
126
+
4. Try adding the layer `plt.legend(loc="center right")` to the end of your code. What does this do? How many layers can be added to a plot, in your estimation?
0 commit comments