-
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
sugguestion about plot_local_autocorrelation #60
Comments
Hello @StevenLi-DS, thank you for your suggestions and ideas! We are always grateful for feedback and happy to accommodate users as much as possible! In fact, we are currently working to implement 3. in #51 . Your point 1. and 4. will most likely be part of the next release as well, these are great additions! As to your first point, I am not sure if I understood you correctly, you can manipulate single Axes through defining What exactly would you like to have more control over in 2. with a Thanks again for the suggestions! We are happy to hear splot is making your life easier! |
Hi, @slumnitz. Thanks for your reply. I actually tried
The doc says the map plots use |
Some more feedback, I'm trying to explore autocorrelation of some linestring geometry through The version of |
I checked it again and found it is caused by the fixed parameter values of Maybe it is better to do some adjust in source code with linestring geometry detected :) As it's not convenient to set additional config I have to modify the source code (just remove the two fixed parameter values) as follow: # original source code
# gdf.assign(cl=labels).plot(column='cl', categorical=True,
# k=2, cmap=hmap, linewidth=0.1, ax=ax,
# edgecolor='white', legend=legend,
# legend_kwds=legend_kwds, **kwargs)
gdf.assign(cl=labels).plot(column='cl', categorical=True,
k=2, cmap=hmap, ax=ax,
legend=legend,
legend_kwds=legend_kwds, **kwargs) |
@qizidog This has been fixed in |
pysal: 2.0.0
It's my first time to plot with
splot
and I think maybe I can offer some suggestions as I've seen many idea collection issues.plot_local_autocorrelation
doesn't seem supportingax
, so it might be a good idea to add aarg
to control the layout e.g., 3 by 1 or 1 by 3. (the function does return oneFig
and threeAxes
. Is there any way to manipulate them just as anyAxes
? Maybe I missed something.)adding a
map_kwds
or something to control the maps.Since the slope of the line in the Moran scatterplot represents the global Moran's I, it might be a good idea to set
xlim
equal toylim
, so that a line flatter than 45 degrees means the Moran's I is less than 0.5. Since differentxlim
andylim
will visually affect the slope of the line, it may cause problem sometimes especially when we compare two plots. (Btw,Geoda
doesn't plot outliers in the Moran scatterplot, so I'm curious of how outliers are handled insplot
)display global Moran's I and its p-value. I think most of the time, we need it as well.
The current API seems to use
Local Moran
object as input. Every time I change the variable I want to plot, then I have to calculate it again, so I think it might be easier to actually just use the columns as input.I'm actually curious if it is possible to simplify the API of
splot
to just have one function and then use args to choose which plot to display likelisa_cluster=False
.Btw, thanks for this amazing work and user-friendly package that makes plotting easy with Python.💕💕💕
The text was updated successfully, but these errors were encountered: