Session Ready
Exercise

Polishing up a figure

Since plt.subplots() returns axes object, you can use the .set_title(), .set_xlabel(), and .set_ylabel() methods to add labels to your figure.

Instructions
100 XP
  • Use the .set_title() method on the axes to label the plot: 'Histogram'.
  • Use the .set_xlabel() method on the axes to label the plot: 'Total Bill'.