Skip to content

Commit

Permalink
making a few notes in the example notebooks
Browse files Browse the repository at this point in the history
and reducing default dpi and image sizes in the network plot method
  • Loading branch information
fscottfoti committed Sep 3, 2014
1 parent 3bca910 commit 8901428
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
21 changes: 19 additions & 2 deletions examples/AnythingScore.ipynb
@@ -1,13 +1,28 @@
{
"metadata": {
"name": "",
"signature": "sha256:7532b98cbf62d310076fff7854024299ea3071a82bfbad1cceedd14e8131a547"
"signature": "sha256:52c5ec0c481a3b7ec7d72e43611bea87986cd8313542e0584cda9cc3b874edac"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Output has been removed from this notebook to reduce file sizes in the repo"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Before you get started, note that this notebook requires the [osm](https://github.com/geopandas/geopandas/tree/osm) branch of geopandas to be installed. This is all still fairly experimental functionality in geopandas, and thus should still be considered experimental here as well (`utils.py` is not fully unit tested). On the other hand, the actual POI queries in Pandana are unit tested and can be considered ready for release."
]
},
{
"cell_type": "code",
"collapsed": false,
Expand Down Expand Up @@ -37,7 +52,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
"store = pd.HDFStore('data/osm_bayarea.h5', \"r\")\n",
"store = pd.HDFStore('osm_bayarea.h5', \"r\")\n",
"net=pdna.Network(store.nodes[\"x\"], \n",
" store.nodes[\"y\"], \n",
" store.edges[\"from\"], \n",
Expand Down Expand Up @@ -122,6 +137,8 @@
"cell_type": "code",
"collapsed": false,
"input": [
"from IPython.display import set_matplotlib_formats\n",
"set_matplotlib_formats('png')\n",
"out_bbox = utils.bbox_convert([-122.539365,37.693047,-122.347698,37.816069], \n",
" from_epsg=4326, to_epsg=3740)\n",
"net.plot(s, bbox=out_bbox, scheme=\"diverging\", color=\"BrBG\")"
Expand Down
14 changes: 13 additions & 1 deletion examples/Example.ipynb
@@ -1,13 +1,25 @@
{
"metadata": {
"name": "",
"signature": "sha256:a7c10e6e70a0940a49ebc87b1632ecc3ed1fb85ff71dd690cb5d998cd7a22818"
"signature": "sha256:b761890efa92ab55edfbf2425340e80dee066f572c7a58c1b0c359d2d9def445"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 2,
"metadata": {
"slideshow": {
"slide_type": "skip"
}
},
"source": [
"Output has been removed from this notebook to reduce file sizes in the repo"
]
},
{
"cell_type": "code",
"collapsed": false,
Expand Down
2 changes: 1 addition & 1 deletion pandana/network.py
Expand Up @@ -332,7 +332,7 @@ def get_node_ids(self, x_col, y_col, mapping_distance=-1):
index=s.index)
return node_ids

def plot(self, s, width=24, height=30, dpi=150,
def plot(self, s, width=12, height=15, dpi=50,
scheme="sequential", color='YlGn', numbins=7,
bbox=None, log_scale=False):
"""
Expand Down

0 comments on commit 8901428

Please sign in to comment.