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’
- k
int
, optional number of bins to graph. k may be ignored or unnecessary for some schemes, like headtailbreaks, maxp, and maximum_breaks Default is 6.
- cmap
str
, optional matplotlib colormap used to shade polygons
- title
str
, optional title of figure.
- dpi
int
, 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
- ncols
int
, optional number of columns in the figure if passing ncols, nrows must also be passed default is None
- nrows
int
, optional number of rows in the figure if passing nrows, ncols must also be passed default is None
- figsize
tuple
, optional the desired size of the matplotlib figure
- save_fig
str
, optional path to save figure if desired.
- ctxmap
contextily
map
provider
, optional contextily basemap. Set to False for no basemap. Default is Stamen.TonerLite
- alpha
int
(optional) Transparency parameter passed to matplotlib
- Returns:
matplotlib.Axes
plot of next-best label assignments for each geographic unit