Skip to content

Commit

Permalink
Flatten QuadMesh arrays to fix bokeh 0.12.4 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 9, 2017
1 parent 9580346 commit 0367391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/plotting/bokeh/raster.py
Expand Up @@ -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},
Expand Down

0 comments on commit 0367391

Please sign in to comment.