1. Lernen
  2. /
  3. Kurse
  4. /
  5. Python for R Users

Connected

Übung

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.

Anleitung

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