स्कैटरप्लॉट की स्टाइलिंग
इस अभ्यास में, आप plt.scatter() का इस्तेमाल करके वीडियो से पिता और पुत्र की ऊँचाई वाला डेटा प्लॉट करेंगे। father_son DataFrame आपके लिए पहले से लोड है। हर स्कैटरप्लॉट में, x-अक्ष पर father_son.fheight और y-अक्ष पर father_son.sheight प्लॉट करें।
यह अभ्यास पाठ्यक्रम का हिस्सा है
Python में Geospatial Data का Visualization
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# 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.____()