Shapefile plot

I am trying to make a shapefile plot interactive using Bokeh. On the homepage there is a great example of plotting the counties in Texas. I would like to do something similar using a zip code shapefile. I am currently using a shapefile reader and plotting using matplotlib patches. Does anyone know if I can modify this to use Bokeh or is Bokeh has another way to deal with shapefiles? Thank you.

Hi Paolo,

Bokeh does not have any "built in" facilities for dealing with shape files. That said, it should not be alot of work to convert shape file data into the format that Bokeh patches glyphs accept, which is a simple "list of lists of coordinates" (one list for each patch). If you did that, that would probably also make a compelling addition, and a pull request to add some convenience classes or functions for dealing with shape files would be welcomed.

Thanks,

Bryan

ยทยทยท

On Feb 24, 2015, at 1:12 PM, Paolo Bert <[email protected]> wrote:

I am trying to make a shapefile plot interactive using Bokeh. On the homepage there is a great example of plotting the counties in Texas. I would like to do something similar using a zip code shapefile. I am currently using a shapefile reader and plotting using matplotlib patches. Does anyone know if I can modify this to use Bokeh or is Bokeh has another way to deal with shapefiles? Thank you.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/a83e6153-041d-49c9-89fd-ea9b8dce2161%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.