-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Labels
discussionspace for collecting ideas and discuss thesespace for collecting ideas and discuss these
Description
Ideas and decisions regarding the design of package structure and API for splot
Overall package idea
- support PySAL with lightweight plotting functionality:
.plotmethods for objects called fromsplotand- functionality found under
splot.sub_packagenamespace depending on PySAL object that is plotted
- Based on
matplotlibandgeopandas splot.mappingoffers tools for coropleth, color and mapping support
Decisions (indicating implementation status):
- integration of
splot.plot.pyintosplot._viz_mpl.py - integration of
giddyvisualisations insplot - update and integrate functionality from
mapping.pyintosplot._viz_mpl.py -
.mplfunctions returnfig, ax - API Structure of
splot(See API - Package Structure comment):- hierarchy with submodules named after statistics visualised (
splot.giddy), common_viz_utils.pyfor utility functions used by all subpackages - integrating
splotfunctionality as.plotmethods in sub packages (see Idea Collection: Functionality to support in splot #10 for supported functionality
- hierarchy with submodules named after statistics visualised (
- degree of customisation user can access: high degree of customisation through keyword dictionaries
- dependency on:
- Matplotlib only
- Geopandas
- Seaborn
- documentation in accordance to general PySAL [submodule contract](url
http://pysal.org/getting_started.html#submodule-contract)
To be decided:
Open questions/ ideas:
Rejected options:
- API Structure of
plot(See API - Package Structure comment):- hierarchy with submodules, one per plotting package (now
splot.mplandsplot.bk), chose function names according to statistics they are helping to visualise (e.g.moran_scatterplot(),local_autocorrelation_statistics()...)
- hierarchy with submodules, one per plotting package (now
- API Structure of
plot(See API - Package Structure comment):- same implementations of visualisations in each (e.g.
.mpl) submodule:
* e.g.mplot,plot_choropleth,plot_local_autocorrelation,... forbkandmpl
* except if one plotting package doesn't have the needed features (e.g. if interactivity is essential,matplotlibmay not be able to create such a plot)
- same implementations of visualisations in each (e.g.
- keywords common to all functions in the same order:
- e.g. ...(moran_loc, df, attribute, p, region_column, plot_width, plot_height,...)
- for
splot.mplonly:ax - for
splot.bkonly:reverse_colors
plot(method="interactive")option, more flexibility by integrating submodules instead of function calls
Metadata
Metadata
Assignees
Labels
discussionspace for collecting ideas and discuss thesespace for collecting ideas and discuss these