BaşlayınÜcretsiz başlayın

Bir saçılım grafiğini stillendirme

Bu egzersizde, videodaki baba ve oğul boyu verilerini çizmek için plt.scatter() kullanacaksın. father_son DataFrame'i senin için önceden yüklendi. Her saçılım grafiğinde, x eksenine father_son.fheight, y eksenine father_son.sheight çiz.

Bu egzersiz, kursun bir parçasıdır

Python ile Coğrafi Verileri Görselleştirme

Kursa Göz Atın

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# 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.____()
Kodu Düzenle ve Çalıştır