geosnap.analyze.ModelResults.plot_next_best_label¶
- ModelResults.plot_next_best_label(time_periods='all', ctxmap='default', figsize=None, nrows=None, ncols=None, save_fig=None, alpha=0.5, cmap='Set1', title='Next-Best Label', dpi=500, plot_kwargs=None, web_mercator=True)[source]¶
Plot the next-best cluster label for each unit as a choropleth map.
- Parameters:
- 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
- cmap
- Returns:
matplotlib.Axes
plot of next-best label assignments for each geographic unit