Skip to content

Commit d4f67f6

Browse files
authored
Merge pull request #9 from WIAS-PDELib/feature/concrete-region-numbers
Use concrete number of grid regions
2 parents 4187910 + 757ce18 commit d4f67f6

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "GridVisualizeTools"
22
uuid = "5573ae12-3b76-41d9-b48c-81d0b6e61cc5"
33
authors = ["Jürgen Fuhrmann <juergen-fuhrmann@web.de>"]
4-
version = "1.1.1"
4+
version = "2.0.0"
55

66
[deps]
77
ColorSchemes = "35d6a980-a343-548e-a6ea-1d62b119f2f4"

src/colors.jl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ RGB{Float64}(0.85, 0.6, 0.6)
1515
1616
"""
1717
function region_cmap(n)
18-
ColorSchemes.distinguishable_colors(max(5, n),
19-
[Colors.RGB{Float64}(0.85, 0.6, 0.6),
20-
Colors.RGB{Float64}(0.6, 0.85, 0.6),
21-
Colors.RGB{Float64}(0.6, 0.6, 0.85)];
18+
ColorSchemes.distinguishable_colors(n,
19+
[Colors.RGB(0.85, 0.6, 0.6), Colors.RGB(0.6, 0.85, 0.6), Colors.RGB(0.6, 0.6, 0.85)];
2220
lchoices = range(70; stop = 80, length = 5),
2321
cchoices = range(25; stop = 65, length = 15),
2422
hchoices = range(20; stop = 360, length = 15))
@@ -40,10 +38,8 @@ RGB{Float64}(1.0, 0.0, 0.0)
4038
4139
"""
4240
function bregion_cmap(n)
43-
ColorSchemes.distinguishable_colors(max(5, n),
44-
[Colors.RGB{Float64}(1.0, 0.0, 0.0),
45-
Colors.RGB{Float64}(0.0, 1.0, 0.0),
46-
Colors.RGB{Float64}(0.0, 0.0, 1.0)];
41+
ColorSchemes.distinguishable_colors(n,
42+
[Colors.RGB(1.0, 0.0, 0.0), Colors.RGB(0.0, 1.0, 0.0), Colors.RGB(0.0, 0.0, 1.0)];
4743
lchoices = range(50; stop = 75, length = 10),
4844
cchoices = range(75; stop = 100, length = 10),
4945
hchoices = range(20; stop = 360, length = 30))

0 commit comments

Comments
 (0)