Skip to content

Commit 0ba01cd

Browse files
committed
Stop using pastel colors
1 parent 6c90dc9 commit 0ba01cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/torchio/visualization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def _create_categorical_colormap(data: torch.Tensor) -> ListedColormap:
4040
mpl, _ = import_mpl_plt()
4141
distinctipy = get_distinctipy()
4242
num_classes = int(data.max())
43-
distinct_colors = distinctipy.get_colors(num_classes, pastel_factor=0.5, rng=0)
43+
distinct_colors = distinctipy.get_colors(num_classes, rng=0)
4444
colors = [(0, 0, 0), *distinct_colors] # prepend black
4545
return mpl.colors.ListedColormap(colors)
4646

0 commit comments

Comments
 (0)