☰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

Retain ImageURL Size on Zoom

Community Support
Jason_Haddix
Jason_Haddix

Hello All,

I’m trying to plot an Image using ImageURL on a map and discovering that the height and width of the image is in relation to the x and y value. In other words, an x/y plot of 1000000 needs have have a height and width of 10000 to be visible. And, on zooming the size of the image does not stay the same, but zooms in as well. So it seems that add_glyth actually adds the image as part of the canvas instead of treating it like another figure plotted. Is there any way to “plot” images that can have a “size” defined?

Thanks,

Jason

⌁   Link to post
Bryan
Bryan

Looking at the reference for ImageURL it shows that there are h_units and w_units properties that should allow you to configure ImageURL to size w and h according to pixels.

  glyphs — Bokeh 3.3.2 Documentation

If those are working then that is a bug.

Thanks,

Bryan

···

On Oct 11, 2016, at 1:15 PM, Jason Haddix <jamamas@gmail.com> wrote:

Hello All,

I'm trying to plot an Image using ImageURL on a map and discovering that the height and width of the image is in relation to the x and y value. In other words, an x/y plot of 1000000 needs have have a height and width of 10000 to be visible. And, on zooming the size of the image does not stay the same, but zooms in as well. So it seems that add_glyth actually adds the image as part of the canvas instead of treating it like another figure plotted. Is there any way to "plot" images that can have a "size" defined?

Thanks,

Jason

--
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/ad4765b7-5676-4c66-abe6-f0377431cc49%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