Retain ImageURL Size on Zoom

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

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 <[email protected]> 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 [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/ad4765b7-5676-4c66-abe6-f0377431cc49%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.