We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bb1b131 + e9d451f commit 02c6f6bCopy full SHA for 02c6f6b
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