Skip to content

Commit ddfe8d5

Browse files
Workaround for Julia bug
Switching the colormaps_sequential and colormaps_diverging values from tuples to vectors works around the Julia bug JuliaLang/julia#8631, solving JuliaAttic#68 and JuliaIO/HDF5.jl#160.
1 parent 9ce88e9 commit ddfe8d5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/maps_data.jl

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
const colormaps_sequential = Compat.@Dict(
77
#single hue
88
#name hue w d c s b wcolor dcolor
9-
"blues" => (255, 0.3, 0.25, 0.88, 0.6, 0.75, RGB(1,1,0), RGB(0,0,1)),
10-
"greens" => (120, 0.15, 0.18, 0.88, 0.55, 0.9, RGB(1,1,0), RGB(0,0,1)),
11-
"grays" => (0, 0.0, 0.0, 1.0, 0.0, 0.75, RGB(1,1,0), RGB(0,0,1)),
12-
"oranges" => (20, 0.5, 0.4, 0.83, 0.95, 0.85, RGB(1,1,0), RGB(1,0,0)),
13-
"purples" => (265, 0.15, 0.2, 0.88, 0.5, 0.7, RGB(1,0,1), RGB(1,0,0)),
14-
"reds" => (12, 0.15, 0.25, 0.8, 0.85, 0.6, RGB(1,1,0), RGB(0.3,0.1,0.1))
9+
"blues" => [255, 0.3, 0.25, 0.88, 0.6, 0.75, RGB(1,1,0), RGB(0,0,1)],
10+
"greens" => [120, 0.15, 0.18, 0.88, 0.55, 0.9, RGB(1,1,0), RGB(0,0,1)],
11+
"grays" => [0, 0.0, 0.0, 1.0, 0.0, 0.75, RGB(1,1,0), RGB(0,0,1)],
12+
"oranges" => [20, 0.5, 0.4, 0.83, 0.95, 0.85, RGB(1,1,0), RGB(1,0,0)],
13+
"purples" => [265, 0.15, 0.2, 0.88, 0.5, 0.7, RGB(1,0,1), RGB(1,0,0)],
14+
"reds" => [12, 0.15, 0.25, 0.8, 0.85, 0.6, RGB(1,1,0), RGB(0.3,0.1,0.1)]
1515
)
1616

1717
const colormaps_diverging = Compat.@Dict(
1818
#name h1 h2 w d1 d2 c s b wcolor dcolor dcolor2
19-
"rdbu" => (12, 255, 0.2, 0.6, 0.0, 0.85, 0.6, 0.65, RGB(1,1,0), RGB(1,0,0), RGB(0,0,1))
19+
"rdbu" => [12, 255, 0.2, 0.6, 0.0, 0.85, 0.6, 0.65, RGB(1,1,0), RGB(1,0,0), RGB(0,0,1)]
2020
)
2121

0 commit comments

Comments
 (0)