カラーマップ
地域を区別したいが、地域同士の関係性を示したくない場合は、定性的カラーマップが最適です。
この演習では、school_districts として利用できる学区のGeoDataFrameを使い、定性的カラーマップと、連続(定量)カラーマップを比較します。
この演習はコースの一部です
Pythonで可視化する地理空間データ
実践的なインタラクティブ演習
このサンプルコードを完成させて、この演習に挑戦してみましょう。
# 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();