有没有办法让Bokeh在轴刻度上显示图像而不是字符串或数值?
例如
from bokeh.io import show
from bokeh.plotting import figure
images = ["img1.png","img2.png","img3.png"]
p = figure(x_range=images, plot_height=250, title="Stuff",
toolbar_location=None, tools="")
p.vbar(x=images, top=[5, 3, 4], width=0.9)
p.xgrid.grid_line_color = None
p.y_range.start = 0
show(p)
结果
如何才能显示图像而不是“img.png”文字?
from IPython.display import Image
images1 = [Image(x) for x in images]
不起作用。