Spaces:
Runtime error
Runtime error
Commit ·
b865c23
1
Parent(s): 2945e69
fix loop scatter
Browse files
app.py
CHANGED
|
@@ -201,7 +201,7 @@ def get_heatmap(celltype, gene, locus1, locus2, heatmap_range, heatmap_x, heatma
|
|
| 201 |
#img = draw_heatmap(mat, 0, return_image=True)
|
| 202 |
fig, ax = plt.subplots(figsize=(4, 4))
|
| 203 |
ax.imshow(mat, cmap='Reds', norm=PowerNorm(gamma=0.3), interpolation=None)
|
| 204 |
-
if heatmap_x
|
| 205 |
ax.scatter(int(heatmap_x), int(heatmap_y), color='green', marker='*', s=100)
|
| 206 |
# remove white padding
|
| 207 |
plt.subplots_adjust(left=0, right=1, top=1, bottom=0)
|
|
|
|
| 201 |
#img = draw_heatmap(mat, 0, return_image=True)
|
| 202 |
fig, ax = plt.subplots(figsize=(4, 4))
|
| 203 |
ax.imshow(mat, cmap='Reds', norm=PowerNorm(gamma=0.3), interpolation=None)
|
| 204 |
+
if heatmap_x != '' and heatmap_y != '':
|
| 205 |
ax.scatter(int(heatmap_x), int(heatmap_y), color='green', marker='*', s=100)
|
| 206 |
# remove white padding
|
| 207 |
plt.subplots_adjust(left=0, right=1, top=1, bottom=0)
|