Commit 4c3fc0ba authored by Christian Schneider's avatar Christian Schneider
Browse files

adapted to new holoviews syntax

parent 9bd0af38
......@@ -267,8 +267,11 @@ class data_grid(data_module_base):
y_vals = self.df.dims[1]
else:
y_vals = name_y
hv.opts({mode: {'plot': {'width': width, 'height': height},
'style': {'cmap': cmap}}})
hv.opts.defaults(hv.opts.Image(
width=width,
height=height,
cmap=cmap
))
# Rename z values (to prevent bug in holoviews)
df = self.df[self.x_min:self.x_max, self.y_min:self.y_max].rename('z')
# Create dataset
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment