-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plotting issue with splot.esda.lisa_cluster() #139
Comments
@jGaboardi is there any error message that shows up? |
Nope 😕, no error message or warning. Just an empty plot (but with an intact legend). |
ok I run into the same issue on macOS, executing
whereby |
Oh! You got an actual error message?? |
@jGaboardi I started debugging lisa_cluster line by line, so we need to resolve the missmatch between the assign and the gdf. |
Hmmm. I don't think anything changed within |
I am not aware of any change on GeoPandas side regarding |
Versions are listed in the bug notebook:
|
It is plotted, it is not empty. Just in white. This makes sense as we hard-code it as Lines 934 to 937 in 22039aa
I'd say that the code in splot is doing what it is supposed to now. Probably some plotting change in geopandas caused this but we need to fix it here. |
Btw, I have no clue how did you get that error @slumnitz |
we should also test how removing affects polygons instead of lines! Thank you @martinfleis! |
I think we should treat LineStrings and Polygons differently under the hood and pass |
@jGaboardi, @darribas and @martinfleis what do you think about adding additional tests that warn the user if there is more than one |
It is technically possible to have mixed type GeoDataFrame and still get contiguity and measure LISA, though I can't think of a use case that would make sense. We can certainly add a warning in that case but I am not worried about that very much. |
Resolving in #140. |
Using
splot.esda.lisa_cluster()
to plot line-based LISA clusters seems to work with the most recent release ofsplot
(v1.1.4
). Here is a notebook demonstrating that the docstring example still works with polygons, but not with lines like it did previously.The text was updated successfully, but these errors were encountered: