Skip to content
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

add compare_surfaces docstring and bump version #38

Merged
merged 1 commit into from
Sep 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mgwr/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.0.4"
__version__ = "2.0.0"

from . import gwr
from . import sel_bw
Expand Down
21 changes: 20 additions & 1 deletion mgwr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,26 @@ def truncate_colormap(cmap, minval=0.0, maxval=1.0, n=100):
@requires('matplotlib')
@requires('geopandas')
def compare_surfaces(data, var1, var2, gwr_t, gwr_bw, mgwr_t, mgwr_bw, name, kwargs1, kwargs2):

'''
Function that creates comparative visualization of GWR and MGWR surfaces.

Parameters
----------
data: pandas or geopandas frame with gwr/mgwr results
var1: name of gwr parameter estimate column in frame (string)
var2: name of mgwr parameter estimate column in frame (string)
gwr_t: name of gwr t-values column in frame associated with var1 (string)
gwr_bw: bandwith for gwr model for var1
mgwr_t: name of mgwr t-values column in frame associated with var2 (string)
mgwr_bw: bandwidth for mgwr model for var2
name: common variable name to use for title
kwargs1: additional plotting arguments for gwr surface
kwargs2: additional plotting arguments for mgwr surface

Returns
-------
None: Functions generates a plot
'''
import matplotlib.pyplot as plt
import geopandas as gp

Expand Down