設定散佈圖的樣式
在這個練習中,你會使用 plt.scatter() 繪製影片中的父子身高資料。father_son DataFrame 已為你預先載入。在每個散佈圖中,將 father_son.fheight 畫在 x 軸,father_son.sheight 畫在 y 軸。
本練習屬於課程
在 Python 視覺化地理空間資料
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Import matplotlib.pyplot
import matplotlib.pyplot as ____
# Scatterplot 1 - father heights vs. son heights with darkred square markers
plt.scatter(father_son.fheight, father_son.sheight, ____ = 'darkred', ____ = 's')
# Show your plot
plt.____()