-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththeme.go
More file actions
96 lines (94 loc) · 1.91 KB
/
theme.go
File metadata and controls
96 lines (94 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package plot
// Theme contains the stylable parameters of a plot.
type Theme struct {
PointStyle, LineStyle, BarStyle AesMapping
TextStyle, RectStyle AesMapping
PanelBG, GridMajor, GridMinor AesMapping
Strip, TicLabel, Tic AesMapping
Title, Label AesMapping
}
var DefaultTheme = Theme{
PointStyle: AesMapping{
"size": "5",
"shape": "circle",
"color": "#222222",
"fill": "#222222",
"alpha": "1",
},
LineStyle: AesMapping{
"size": "2",
"linetype": "solid",
"color": "#222222",
"alpha": "1",
},
BarStyle: AesMapping{
"linetype": "blank",
"color": "gray20",
"fill": "gray20",
"alpha": "1",
},
TextStyle: AesMapping{
"family": "Helvetica",
"fontface": "regular",
"lineheight": "15",
"color": "black",
"vjust": "0.5",
"hjust": "0.5",
"angle": "0",
},
RectStyle: AesMapping{
"linetype": "solid",
"color": "gray50",
"fill": "gray50",
"alpha": "1",
},
PanelBG: AesMapping{
"linetype": "blank",
"color": "#00000000",
"size": "0",
"fill": "gray90",
"alpha": "1",
},
GridMajor: AesMapping{
"linetype": "solid",
"color": "white",
"size": "1",
"alpha": "1",
},
GridMinor: AesMapping{
"linetype": "solid",
"color": "white",
"size": "0.67",
"alpha": "1",
},
Tic: AesMapping{
"linetype": "solid",
"color": "gray20",
"size": "2",
"length": "2 mm",
"alpha": "1",
},
TicLabel: AesMapping{
"color": "gray20",
"size": "12 pt",
"angle": "0",
"sep": "0.5 mm",
},
Strip: AesMapping{
"linetype": "blank",
"color": "black", // Color of text
"size": "10 pt", // Font size
"fill": "gray60", // Background color
"alpha": "1",
},
Title: AesMapping{
"color": "black",
"size": "16 pt",
"alpha": "1",
},
Label: AesMapping{
"color": "black",
"size": "14 pt",
"alpha": "1",
},
}