set customized cmap lisa_cluste()
I came across the following problem:
https://gis.stackexchange.com/questions/329433/how-to-fix-colors-of-lisa-cluster-maps-from-pysal
I tried to set another colormap, such as
fig, ax = lisa_cluster(moran_loc, gdf, cmap='Blues')
TypeError: plot() got multiple values for keyword argument 'cmap'
https://github.com/pysal/splot/blob/11da7879c0e2f0231317cc8a3fa8fdc00f10a58a/splot/_viz_esda_mpl.py#L921-L932
@StevenLi-DS, thank you for the issue! We currently do not support the change of a cmap in lisa_cluster(). But I will have a look at it for a future release.
If you are interested in changing the colours and need a quick fix, I would recommend cloning the splot GitHub repo, installing splot from your local copy (e.g. installing splot as a developer with cd splot, pip install . in your chosen Conda environment) and changing the colours in: def mask_local_auto(moran_loc, p=0.5): found in _viz_utils.py.
There is a little bit of information on how to install splot for development here and I am happy to add some more in the coming weeks.