1. Learn
  2. /
  3. Courses
  4. /
  5. Visualizing Geospatial Data in Python

Connected

Exercise

Styling a scatterplot

In this exercise, you'll be using plt.scatter() to plot the father and son height data from the video. The father_son DataFrame has been pre-loaded for you. In each scatterplot, plot father_son.fheight as x-axis and father_son.sheight as y-axis.

Instructions 1/3

undefined XP
    1
    2
    3
  • Import the pyplot module from matplotlib with the usual alias.
  • Create a scatterplot of father and son heights with a square marker (encoded as s) that is 'darkred'. Show your plot.