Spaces:
Runtime error
Runtime error
smaller colorbar
Browse files- src/visualisation.py +1 -1
src/visualisation.py
CHANGED
|
@@ -41,7 +41,7 @@ def render_heatmap(
|
|
| 41 |
color = COLOR_MAP(norm(heatmap[square_index]))
|
| 42 |
color = (*color[:3], ALPHA)
|
| 43 |
color_dict[square_index] = matplotlib.colors.to_hex(color, keep_alpha=True)
|
| 44 |
-
fig = plt.figure(figsize=(6,
|
| 45 |
ax = plt.gca()
|
| 46 |
ax.axis("off")
|
| 47 |
fig.colorbar(
|
|
|
|
| 41 |
color = COLOR_MAP(norm(heatmap[square_index]))
|
| 42 |
color = (*color[:3], ALPHA)
|
| 43 |
color_dict[square_index] = matplotlib.colors.to_hex(color, keep_alpha=True)
|
| 44 |
+
fig = plt.figure(figsize=(6, 1))
|
| 45 |
ax = plt.gca()
|
| 46 |
ax.axis("off")
|
| 47 |
fig.colorbar(
|