ping98k commited on
Commit
67d5397
·
1 Parent(s): 048e22e

Refactor search group label for clarity and update heatmap zmin value for improved visualization accuracy.

Browse files
Files changed (2) hide show
  1. index.html +1 -1
  2. plotting.js +1 -1
index.html CHANGED
@@ -74,7 +74,7 @@
74
  import { sentences } from './sentences.js';
75
  document.getElementById("input").value = sentences.join("\n");
76
  </script>
77
- <label for="search-group-input" style="margin-top:10px;display:block;">Search Group (optional, overrides group with ##search):</label>
78
  <textarea id="search-group-input" placeholder="Paste or type search group lines here..."></textarea>
79
  <div class="control-group">
80
  <label for="kmeans-k">Clusters:</label>
 
74
  import { sentences } from './sentences.js';
75
  document.getElementById("input").value = sentences.join("\n");
76
  </script>
77
+ <label for="search-group-input" style="margin-top:10px;display:block;">Search Group:</label>
78
  <textarea id="search-group-input" placeholder="Paste or type search group lines here..."></textarea>
79
  <div class="control-group">
80
  <label for="kmeans-k">Clusters:</label>
plotting.js CHANGED
@@ -1,5 +1,5 @@
1
  export function plotHeatmap(sim, xLabels, yLabels) {
2
- const data = [{ z: sim, type: "heatmap", colorscale: "Viridis", zmin: 0.7, zmax: 1, x: xLabels, y: yLabels }];
3
  Plotly.newPlot("plot-heatmap", data, {
4
  xaxis: { title: "Group" },
5
  yaxis: { title: "Group" },
 
1
  export function plotHeatmap(sim, xLabels, yLabels) {
2
+ const data = [{ z: sim, type: "heatmap", colorscale: "Viridis", zmin: 0.8, zmax: 1, x: xLabels, y: yLabels }];
3
  Plotly.newPlot("plot-heatmap", data, {
4
  xaxis: { title: "Group" },
5
  yaxis: { title: "Group" },