Skip to content

Commit 7c98444

Browse files
committed
Use concrete number of grid regions
1 parent 7434221 commit 7c98444

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/colors.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RGB{Float64}(0.85,0.6,0.6)
1515
1616
"""
1717
function region_cmap(n)
18-
ColorSchemes.distinguishable_colors(max(5, n),
18+
ColorSchemes.distinguishable_colors(n,
1919
[Colors.RGB(0.85, 0.6, 0.6), Colors.RGB(0.6, 0.85, 0.6), Colors.RGB(0.6, 0.6, 0.85)];
2020
lchoices = range(70; stop = 80, length = 5),
2121
cchoices = range(25; stop = 65, length = 15),
@@ -38,7 +38,7 @@ RGB{Float64}(1.0,0.0,0.0)
3838
3939
"""
4040
function bregion_cmap(n)
41-
ColorSchemes.distinguishable_colors(max(5, n),
41+
ColorSchemes.distinguishable_colors(n,
4242
[Colors.RGB(1.0, 0.0, 0.0), Colors.RGB(0.0, 1.0, 0.0), Colors.RGB(0.0, 0.0, 1.0)];
4343
lchoices = range(50; stop = 75, length = 10),
4444
cchoices = range(75; stop = 100, length = 10),

0 commit comments

Comments
 (0)