RDeF654875678597657 commited on
Commit
c60bb62
·
1 Parent(s): 1d96658
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -471,7 +471,7 @@ def heatmap_cell_centric(class_, subclass, groupby, sortby):
471
  heatmap = hv.HeatMap(heatmap_data, kdims=['variable', groupby], vdims=['value']).opts(
472
  cmap='RdYlBu_r', width=600, height=fig_height, tools=['hover'], active_tools=[], colorbar=True,
473
  xlabel='Gene', ylabel=groupby, clim=(0, 100)
474
- )
475
 
476
  # Customizing the plot
477
  # Note: Custom color for each gene and classification like in the original function might require more complex handling
@@ -504,7 +504,7 @@ def heatmap_region_centric(division, type_selector):
504
  heatmap = heatmap_data.hvplot.heatmap().opts(
505
  cmap='RdYlBu_r', width=600, height=fig_height, tools=['hover'], active_tools=[], colorbar=True,
506
  xlabel='Gene', ylabel='Structure'
507
- )
508
  return heatmap
509
 
510
  dashboard_region_centric_dashboard = pn.Column(pn.Row(division_selector, type_selector),
 
471
  heatmap = hv.HeatMap(heatmap_data, kdims=['variable', groupby], vdims=['value']).opts(
472
  cmap='RdYlBu_r', width=600, height=fig_height, tools=['hover'], active_tools=[], colorbar=True,
473
  xlabel='Gene', ylabel=groupby, clim=(0, 100)
474
+ ).opts(colorbar_opts={'title': '%'})
475
 
476
  # Customizing the plot
477
  # Note: Custom color for each gene and classification like in the original function might require more complex handling
 
504
  heatmap = heatmap_data.hvplot.heatmap().opts(
505
  cmap='RdYlBu_r', width=600, height=fig_height, tools=['hover'], active_tools=[], colorbar=True,
506
  xlabel='Gene', ylabel='Structure'
507
+ ).opts(colorbar_opts={'title': '%'})
508
  return heatmap
509
 
510
  dashboard_region_centric_dashboard = pn.Column(pn.Row(division_selector, type_selector),