Skip to content

Commit 1bdd458

Browse files
committed
use gray colormap for cremi data
1 parent 7337695 commit 1bdd458

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/cremi/cremi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
import matplotlib.pyplot as plt
118118

119119
fig, ax = plt.subplots(1, 3, figsize=(15, 5))
120-
ax[0].imshow(predict_cremi.in_data.array("r")[100])
120+
ax[0].imshow(predict_cremi.in_data.array("r")[100], cmap="gray")
121121
ax[0].set_title("Raw")
122122
ax[1].imshow(predict_cremi.out_data[0].array("r")[:3, 100].transpose(1, 2, 0))
123123
ax[1].set_title("LSDs")
@@ -266,7 +266,7 @@ def random_color(label):
266266
):
267267
# Show the raw data
268268
if i == 0:
269-
im_raw = axes[0].imshow(raw_slice)
269+
im_raw = axes[0].imshow(raw_slice, cmap="gray")
270270
axes[0].set_title("Raw")
271271
im_fragments = axes[1].imshow(
272272
fragments_slice,
@@ -285,7 +285,7 @@ def random_color(label):
285285
)
286286
axes[2].set_title("Segments")
287287
else:
288-
im_raw = axes[0].imshow(raw_slice, animated=True)
288+
im_raw = axes[0].imshow(raw_slice, animated=True, cmap="gray")
289289
im_fragments = axes[1].imshow(
290290
fragments_slice,
291291
cmap=cmap_labels,

0 commit comments

Comments
 (0)