☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

What is the format used in then Texas unemployment example?

Community Support
gui.marthe
gui.marthe

Hey folks,

I have Ben trying to build from the Texas unemployment example in the gallery, but I can't seem to infer what is the format of the counties boarders. I've seen that the it is an XML that you call geometry in the loading code.

⌁   Link to post
Bryan
Bryan

Hi,

The data format for the "patches" glyph that is used to draw that example, is that "x" and "y" should each both be a "list of lists". Each sublist should give all the x- or y-coordinates for one patch, e.g.:

  xs = [ [x-coords for patch1], [x-coords for patch2], ... ]
        ys = [ [y-coords for patch1], [y-coords for patch2], ... ]

  p.patches(xs=xs, ys=ys, ...)

Bokeh could probably use some convenience methods to help convert other common GIS formats to/from this "list of lists" format. But GIS is not really my area, so I'd want to get some user input from users who are, before embarking on adding anything. Please feel free to open a GH issue to discuss that, if you like.

Thanks,

Bryan

···

On Jun 29, 2017, at 08:26, gui.marthe@gmail.com wrote:

Hey folks,

I have Ben trying to build from the Texas unemployment example in the gallery, but I can't seem to infer what is the format of the counties boarders. I've seen that the it is an XML that you call geometry in the loading code.

--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4f306df0-e169-44e6-a527-fcfbf9abd6e5%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled