Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import geopandas as gpd
  2. import matplotlib.pyplot as plt
  3.  
  4. sp = gpd.read_file(<shapefile filename goes here>)
  5. column_list = sp.columns.values
  6. for i in column_list:
  7. sp.plot(column = i, cmap='Blues', alpha=1, legend=True, linewidth=0)
  8. plt.savefig(i +'.png', dpi=600,bbox_inches='tight')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement