1. 学习
  2. /
  3. 课程
  4. /
  5. Python for R Users

Connected

练习

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.

说明

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'.