散布図のスタイル設定
この演習では、動画で扱った父親と息子の身長データを plt.scatter() でプロットします。father_son DataFrame はあらかじめ読み込まれています。各散布図では、x 軸に father_son.fheight、y 軸に father_son.sheight を指定してください。
この演習はコースの一部です
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.____()