Skip to content

(ENH) speed up plot_spatial_weights for plotting spatial weights #42

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

Merged
merged 3 commits into from
Jan 9, 2019

Conversation

weikang9009
Copy link
Member

@weikang9009 weikang9009 commented Dec 31, 2018

This PR is related to pysal/libpysal#123 regarding the faster plotting of spatial weights for a large data set. The current plot_spatial_weights function in splot seems to be essentially the same as the plot method for W in libpysal, both of which take a long time for a large data set.

An example is given in this notebook which tries to visualize the queen weight for a data set containing 4109 polygons. The implementations in splot and libpysal cost about 500 seconds while the updated implementation costs about 3 seconds.

Copy link
Member

@slumnitz slumnitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome!

@slumnitz slumnitz merged commit 15de895 into pysal:master Jan 9, 2019
@ljwolf
Copy link
Member

ljwolf commented Jan 9, 2019

Could we please get this to replace w.plot over in libpysal too? We'd talked about how to do this.kind of integration of plotting methods, if there are any questions still let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants