I’m actually not sure if it’s a bug - that’s why I’m posting it here @philippjfr - but I can reproduce it with version 1.14.2 for holoviews and bokeh 2.3.0.
import holoviews as hv import skimage import numpy as np hv.extension('bokeh') works= False# <---- Change this to TRUE to make it WORK if works: image_chelsea = skimage.data.chelsea() else: image_chelsea = np.transpose( skimage.data.chelsea(), axes=[1,0,2] ) print(image_chelsea.shape/image_chelsea.shape) plot_chelsea = hv.Image(image_chelsea).opts( # aspect='equal', aspect=image_chelsea.shape/image_chelsea.shape, # data_aspect=img.shape/img.shape, title='chelsea', xaxis=None, yaxis=None ) plot_chelsea.options(responsive=True)
watch=True - it will keep original height to be smaller than width and then everything works as expected.
watch=False it stops working.
Please note that removing
responsive=True allows it to plot - but the picture is obviously not correct (in terms of not being stretched to fill the frame).
Please help, I’m really puzzled at this point.
Thanks in Advance!