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

Basemap plot #38

Merged
merged 4 commits into from
Feb 3, 2015
Merged

Basemap plot #38

merged 4 commits into from
Feb 3, 2015

Conversation

jiffyclub
Copy link
Member

Works with a Series that has the same index as nodes and some data value. Requires a data point for every node. Plot types are limited to scatter or hexbin. Sample:

bmap, fig, ax = net.plot(
    nearest, plot_type='hexbin',
    fig_kwargs={'figsize': (8, 8), 'facecolor': 'white'},
    bmap_kwargs={'resolution': 'h'},
    plot_kwargs={'cmap': plt.cm.YlGnBu, 'reduce_C_function': np.min},
    cbar_kwargs={'location': 'bottom', 'label': 'Distance (meters)'})

east_bay_min_dist_to_cafe

Works with a Series that has the same index as nodes and some
data value. Requires a data point for every node.
Plot types are limited to scatter or hexbin.
Though users can certainly use it to get colormaps to provide
to the new plotting routine.
Now that we have multiple networks during some tests,
this causes tests to fail unpredictably.
jiffyclub added a commit that referenced this pull request Feb 3, 2015
@jiffyclub jiffyclub merged commit 10c5d6d into master Feb 3, 2015
@jiffyclub jiffyclub deleted the basemap_plot branch February 3, 2015 22:51
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.

None yet

1 participant