1111
January 2, 2017, 9:58pm
1
Hi!
Whenever I try to add an image to my plots I get the following error in my browser:
Bokeh Error
attempted to retrieve property array for nonexistent field 'http://pngimg.com/upload/duck_PNG5011.png'
I add the image with the following code:
image_url = ‘http://pngimg.com/upload/duck_PNG5011.png ’
p_image = ImageURL(url=image_url, anchor=‘bottom_right’)
p.add_glyph(p_image)
this was taken from https://github.com/bokeh/bokeh/blob/master/tests/glyphs/ImageURL.py
Bryan
January 3, 2017, 12:51am
2
In the examples you link, the value of the "url" parameter was being set to the name of a column on a column data source. You need to follow that example, and put the urls in a data source column that you reference, or use the image_url method from bokeh.plotting API, where you could specify something like:
p.image_url(url=["http://some/url"\ ], ...)
Thanks,
Bryan
···
On Jan 2, 2017, at 3:58 PM, hmm <[email protected] > wrote:
Hi!
Whenever I try to add an image to my plots I get the following error in my browser:
Bokeh Error
attempted to retrieve property array for nonexistent field 'http://pngimg.com/upload/duck_PNG5011.png' ;
I add the image with the following code:
image_url = 'http://pngimg.com/upload/duck_PNG5011.png' ;
p_image = ImageURL(url=image_url, anchor='bottom_right')
p.add_glyph(p_image)
this was taken from https://github.com/bokeh/bokeh/blob/master/tests/glyphs/ImageURL.py
--
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/e412f22d-ac8a-4b93-a5c1-1934aa0beece%40continuum.io\ .
For more options, visit https://groups.google.com/a/continuum.io/d/optout\ .