Hi,
I’m trying to understand how to use bokeh to plot images
I’m using bokeh from git master in a jupyter notebook.
The code I’m using is:
from bokeh.plotting import figure, show
``
from bokeh.io import output_notebook
from bokeh.models.tools import BoxZoomTool
output_notebook()
#img size in pixel
x,y=[3392.0,701.0]
TOOLS = ‘pan,box_select,crosshair,resize,reset,hover,wheel_zoom’
p = figure(x_range=(0,3392), y_range=(701,0), tools=TOOLS)
p.add_tools(BoxZoomTool(match_aspect=True))
p.image_url(url=[‘bathy.png’], x=0.0, y=0.0, w=1.0, h=1.0)
show(p)
The reason why I’m using git master is because of the option:
match_aspect=True
``
But seems that the parameters w,h are being ignored and the zoom doesn’t respond as expected.
Thanks for any advice.
Massimo.