We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c90dc9 commit 0ba01cdCopy full SHA for 0ba01cd
1 file changed
src/torchio/visualization.py
@@ -40,7 +40,7 @@ def _create_categorical_colormap(data: torch.Tensor) -> ListedColormap:
40
mpl, _ = import_mpl_plt()
41
distinctipy = get_distinctipy()
42
num_classes = int(data.max())
43
- distinct_colors = distinctipy.get_colors(num_classes, pastel_factor=0.5, rng=0)
+ distinct_colors = distinctipy.get_colors(num_classes, rng=0)
44
colors = [(0, 0, 0), *distinct_colors] # prepend black
45
return mpl.colors.ListedColormap(colors)
46
0 commit comments