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 bb1b131 commit e9d451fCopy full SHA for e9d451f
1 file changed
src/aind_dynamic_foraging_basic_analysis/plot/style.py
@@ -81,6 +81,8 @@ def get_n_colors(n, cmap_name="hsv", offset=None):
81
n_spacing = n
82
else:
83
n_spacing = n - 1
84
+ if n_spacing <= 0:
85
+ n_spacing = 1
86
87
# determine offset for mixing up colors
88
if offset is None:
0 commit comments