On Jan 6, 2017, at 2:01 AM, joris.bekkers@gmail.com wrote:
Sorry for not doing that right away!
Here you go:
from bokeh.plotting import figure
from bokeh.models import SaveTool
from bokeh.models import ColumnDataSource
from bokeh.io import show
url = 'http://bokeh.pydata.org/en/latest/_static/images/logo.png'
source = ColumnDataSource(data=dict(
x=,
y=,
url= [url]))
TOOLS = [SaveTool()]
p = figure(plot_height=500, plot_width=500, tools=TOOLS,
title="Save Tool Plot", logo=None)
l0 = p.square(x="x",
y="y",
source=source,
alpha=0.6,
)
p.image_url(url='url',x=.75,y=.45,h=.20,w=.20, source=source)
def update():
source.data = dict(
x=[.9],
y=[.5],
url=[url]
#color=df['color']
)
sizing_mode = 'fixed'
update()
show(p)
--
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/6dfe0e35-dbcf-46d9-8050-48396a3271ae%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.