☰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

Bounding Boxes

Community Support
Bryan
Bryan

There's nothing built in to do this. Bokeh draws on a raster HTML canvas, so the browser can't do anything automatically either since almost none of the things you show highlighted are individual DOM elements. For glyphs that have data-space extents, you could potential compute boxes yourself (in Python) and draw them yourself. But other things (e.g. tick labels, titles, legends...) are only computed in the browser, so new BokehJS development would be required to add this functionality. To add it option for "everything", new code would need to be added in a large number of places. You could add a GH feature request issue for this, but being honest, I am not sure we would be able to prioritize it any time soon.

Thank,

Bryan

···

On May 15, 2018, at 09:23, Nitesh Methani <initeshmethani@gmail.com> wrote:

Hi,

I am unable to draw a bounding box around the plots. An example that I am trying to reproduce with the original image is as follows:

<Auto Generated Inline Image 1.png>

<Auto Generated Inline Image 2.png>
<Auto Generated Inline Image 3.png>
Any suggestions on how to do it ?

--
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/44ab1678-81d2-4c64-b126-cb9e3feac9a3%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
<Auto Generated Inline Image 1.png><Auto Generated Inline Image 2.png><Auto Generated Inline Image 3.png>

⌁   Link to post
Nitesh_Methani
Nitesh_Methani

Okay.
Thanks alot for the quick response.

···

On Tue, 15 May 2018, 21:59 Bryan Van de ven, bryanv@anaconda.com wrote:

There’s nothing built in to do this. Bokeh draws on a raster HTML canvas, so the browser can’t do anything automatically either since almost none of the things you show highlighted are individual DOM elements. For glyphs that have data-space extents, you could potential compute boxes yourself (in Python) and draw them yourself. But other things (e.g. tick labels, titles, legends…) are only computed in the browser, so new BokehJS development would be required to add this functionality. To add it option for “everything”, new code would need to be added in a large number of places. You could add a GH feature request issue for this, but being honest, I am not sure we would be able to prioritize it any time soon.

Thank,

Bryan

On May 15, 2018, at 09:23, Nitesh Methani initeshmethani@gmail.com wrote:

Hi,

I am unable to draw a bounding box around the plots. An example that I am trying to reproduce with the original image is as follows:

<Auto Generated Inline Image 1.png>

<Auto Generated Inline Image 2.png>

<Auto Generated Inline Image 3.png>

Any suggestions on how to do it ?

–

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/44ab1678-81d2-4c64-b126-cb9e3feac9a3%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

<Auto Generated Inline Image 1.png><Auto Generated Inline Image 2.png><Auto Generated Inline Image 3.png>

–

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/51D2033F-8984-48B4-B611-248F5AAE2603%40anaconda.com.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post

End of archived discussion · Replies are disabled