I'm new to GIS and QGIS. I've looked through several of the related questions including here and here, but can't figure out a simple way to automate creating choropleths for each attribute in a shapefile using QGIS but strictly from Python. I figured this was a relatively common use case.
I gave up after about four or so hours of trying to figure it out and wrote this simple code that produces the ~300 pngs that I need:
import geopandas as gpd import matplotlib.pyplot as plt sp = gpd.read_file(<shapefile filename goes here>) column_list = sp.columns.values for i in column_list: sp.plot(column = i, cmap='Blues', alpha=1, legend=True, linewidth=0) plt.savefig(i +'.png', dpi=600,bbox_inches='tight') Again this works fine for what I needed, but is there an implementation in QGIS? I'd like to get better with this software/package.