Commit e5bf5272 authored by Teresa Hönigl-Decrinis's avatar Teresa Hönigl-Decrinis
Browse files

Update data_grid.py to add colorbar to plot()

parent 76d193db
...@@ -270,7 +270,8 @@ class data_grid(data_module_base): ...@@ -270,7 +270,8 @@ class data_grid(data_module_base):
hv.opts.defaults(hv.opts.Image( hv.opts.defaults(hv.opts.Image(
width=width, width=width,
height=height, height=height,
cmap=cmap cmap=cmap,
colorbar=True
)) ))
# Rename z values (to prevent bug in holoviews) # 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') df = self.df[self.x_min:self.x_max, self.y_min:self.y_max].rename('z')
......
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