Open olenaboiko303 opened 8 months ago
That looks like a bug to me.
@olenaboiko303 I have transferred the issue to a repository where this is actually implemented at the moment. The fix will need to happen here.
Any chance you could share your data and the code you have used with us?
@olenaboiko303 I have transferred the issue to a repository where this is actually implemented at the moment. The fix will need to happen here.
Any chance you could share your data and the code you have used with us?
@martinfleis
Thank you for addressing my question! I can't share the data, but the code is quite straightforward (see below). The second version shows that if I had values highlighted in all 4 quadrants, then the colors are no longer mismatched.
@olenaboiko303 Can you copy & paste the code you are running? It's cumbersome to troubleshoot from an image of code.
@jGaboardi
Please see the code snippet I'm running below.
import geopandas as gpd
from pysal.lib import weights
from esda.moran import Moran_Local
from splot.esda import plot_local_autocorrelation
mnp = gpd.read_file("./data-module-4/mnp.shp")
mnp_nbq = weights.contiguity.Queen.from_dataframe(mnp)
moran_loc = Moran_Local(mnp["PEST"], mnp_nbq)
plot_local_autocorrelation(moran_loc, mnp, 'PEST')
Hello. I encounter the same problem. I guess the yellow points in the scatter plot should be blue. It seems a bug.
Using
plot_local_autocorrelation
function here, why the color in the bottom left quadrant is not dark blue to match with the LISA cluster map?