geosnap.analyze.ModelResults.plot_path_silhouette

ModelResults.plot_path_silhouette(time_periods='all', ctxmap='default', figsize=None, nrows=None, ncols=None, save_fig=None, alpha=0.5, cmap='bwr', scheme='quantiles', k=6, title='Path Silhouette', dpi=500, plot_kwargs=None, web_mercator=True)[source]

Plot the path silhouette scores for each unit as a choropleth map.

Parameters:
schemestring,optional

matplotlib scheme to be used default is ‘quantiles’

kint, optional

number of bins to graph. k may be ignored or unnecessary for some schemes, like headtailbreaks, maxp, and maximum_breaks Default is 6.

cmapstr, optional

matplotlib colormap used to shade polygons

titlestr, optional

title of figure.

dpiint, optional

dpi of the saved image if save_fig=True default is 500

web_mercatorbool, optional

whether to reproject the data into web mercator (epsg 3857) prior to plotting. Defaults to True

ncolsint, optional

number of columns in the figure if passing ncols, nrows must also be passed default is None

nrowsint, optional

number of rows in the figure if passing nrows, ncols must also be passed default is None

figsizetuple, optional

the desired size of the matplotlib figure

save_figstr, optional

path to save figure if desired.

ctxmapcontextily map provider, optional

contextily basemap. Set to False for no basemap. Default is Stamen.TonerLite

alphaint (optional)

Transparency parameter passed to matplotlib

Returns:
matplotlib.Axes

plot of next-best label assignments for each geographic unit