diff --git a/holoviews/plotting/bokeh/raster.py b/holoviews/plotting/bokeh/raster.py index d332037289..79b0f7d155 100644 --- a/holoviews/plotting/bokeh/raster.py +++ b/holoviews/plotting/bokeh/raster.py @@ -188,8 +188,8 @@ def get_data(self, element, ranges=None, empty=False): heights = np.diff(element.data[1]) xs, ys = cartesian_product([xvals, yvals]) ws, hs = cartesian_product([widths, heights]) - data = {x: xs.flat, y: ys.flat, z: zvals, - 'widths': ws.flat, 'heights': hs.flat} + data = {x: xs.flatten(), y: ys.flatten(), z: zvals, + 'widths': ws.flatten(), 'heights': hs.flatten()} return (data, {'x': x, 'y': y, 'fill_color': {'field': z, 'transform': cmapper},