Colormaps
जब आप अलग-अलग क्षेत्रों को बस अलग दिखाना चाहते हैं, और उनके बीच किसी तरह के संबंध का संकेत नहीं देना चाहते, तो qualitative colormap सबसे अच्छा विकल्प है.
इस अभ्यास में आप school districts GeoDataFrame पर qualitative colormap की तुलना sequential (quantitative) colormap से करेंगे. यह आपके लिए school_districts के रूप में उपलब्ध है.
यह अभ्यास पाठ्यक्रम का हिस्सा है
Python में Geospatial Data का Visualization
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# Set legend style
lgnd_kwds = {'title': 'School Districts',
'loc': 'upper left', 'bbox_to_anchor': (1, 1.03), 'ncol': 1}
# Plot the school districts using the tab20 colormap (qualitative)
school_districts.plot(column = ____, ____ = 'tab20', ____ = True, ____ = lgnd_kwds)
plt.xlabel('Longitude')
plt.ylabel('Latitude')
plt.title('Nashville School Districts')
plt.show();