@@ -82,18 +82,41 @@ module ChartTemplates =
82
82
|]
83
83
84
84
let light =
85
-
86
- let defaultFont = Font.init ( Size = 40 )
85
+ let initLightAxisTemplate () =
86
+ Axis.LinearAxis.init(
87
+ Showline = true ,
88
+ Zeroline = true
89
+ )
87
90
88
91
let defaultLayout =
89
92
Layout.init (
90
93
Paper_ bgcolor = " white" ,
91
- Plot_ bgcolor= " white" ,
92
- Font = defaultFont
94
+ Plot_ bgcolor = " white"
95
+ )
96
+ |> Layout.AddLinearAxis(( StyleParam.AxisId.X 1 ),( initLightAxisTemplate()))
97
+ |> Layout.AddLinearAxis(( StyleParam.AxisId.Y 1 ),( initLightAxisTemplate()))
98
+
99
+ Template.init( defaultLayout)
100
+
101
+ let lightMirrored =
102
+ let initLightAxisTemplate () =
103
+ Axis.LinearAxis.init(
104
+ Showline = true ,
105
+ Zeroline = true ,
106
+ Mirror = StyleParam.Mirror.All,
107
+ Ticks = StyleParam.TickOptions.Inside
108
+ //Showgrid = false
93
109
)
94
110
111
+ let defaultLayout =
112
+ Layout.init (
113
+ Paper_ bgcolor = " white" ,
114
+ Plot_ bgcolor = " white"
115
+ )
116
+ |> Layout.AddLinearAxis(( StyleParam.AxisId.X 1 ),( initLightAxisTemplate()))
117
+ |> Layout.AddLinearAxis(( StyleParam.AxisId.Y 1 ),( initLightAxisTemplate()))
95
118
96
- Template.init( defaultLayout, TraceTemplates = [||] )
119
+ Template.init( defaultLayout)
97
120
98
121
let dark =
99
122
@@ -103,8 +126,9 @@ module ChartTemplates =
103
126
Zerolinecolor = " rgb(204, 204, 204)" ,
104
127
Gridcolor = " rgba(204, 204, 204, 0.3)" ,
105
128
Tickcolor = " rgba(204, 204, 204, 0.5)" ,
106
- Showline= true ,
107
- Zeroline= true
129
+ Ticks = StyleParam.TickOptions.Inside,
130
+ Showline = true ,
131
+ Zeroline = true
108
132
)
109
133
110
134
let darkLayoutTemplate =
@@ -136,22 +160,60 @@ module ChartTemplates =
136
160
137
161
let initFslabAxisTemplate () =
138
162
Axis.LinearAxis.init(
139
- Linecolor = " #438AFE " ,
163
+ Linecolor = " white " ,
140
164
Zerolinecolor = " rgba(67, 138, 254, 0.5)" ,
141
165
Gridcolor = " rgba(67, 138, 254, 0.5)" ,
142
166
Tickcolor = " rgba(67, 138, 254, 0.5)" ,
143
- Showline= true ,
144
- Zeroline= true
167
+ Ticks = StyleParam.TickOptions.Inside,
168
+ Showline = true ,
169
+ Zeroline = true
145
170
)
146
171
147
172
let fslabLayoutTemplate =
148
173
Layout.init(
149
- Paper_ bgcolor = " #2D3E50 " ,
150
- Plot_ bgcolor= " #2D3E50 " ,
151
- Font = Font.init( Color = " #438AFE " )
174
+ Paper_ bgcolor = " #200117 " ,
175
+ Plot_ bgcolor= " #200117 " ,
176
+ Font = Font.init( Color = " white " )
152
177
)
153
178
|> Layout.AddLinearAxis(( StyleParam.AxisId.X 1 ),( initFslabAxisTemplate()))
154
179
|> Layout.AddLinearAxis(( StyleParam.AxisId.Y 1 ),( initFslabAxisTemplate()))
155
180
156
181
Template.init( fslabLayoutTemplate)
157
- |> Template.withColorWay ColorWays.fslab
182
+ |> Template.withColorWay ColorWays.fslab
183
+
184
+
185
+ let transparent =
186
+ let initTransparentAxisTemplate () =
187
+ Axis.LinearAxis.init(
188
+ Showline = true ,
189
+ Zeroline = true
190
+ )
191
+
192
+ let defaultLayout =
193
+ Layout.init (
194
+ Paper_ bgcolor = " rgba(255, 255, 255, 0)" ,
195
+ Plot_ bgcolor = " rgba(255, 255, 255, 0)"
196
+ )
197
+ |> Layout.AddLinearAxis(( StyleParam.AxisId.X 1 ),( initTransparentAxisTemplate()))
198
+ |> Layout.AddLinearAxis(( StyleParam.AxisId.Y 1 ),( initTransparentAxisTemplate()))
199
+
200
+ Template.init( defaultLayout)
201
+
202
+ let transparentMirrored =
203
+ let initTransparentAxisTemplate () =
204
+ Axis.LinearAxis.init(
205
+ Showline = true ,
206
+ Zeroline = true ,
207
+ Mirror = StyleParam.Mirror.All,
208
+ Ticks = StyleParam.TickOptions.Inside
209
+ )
210
+
211
+ let defaultLayout =
212
+ Layout.init (
213
+ Paper_ bgcolor = " rgba(255, 255, 255, 0)" ,
214
+ Plot_ bgcolor = " rgba(255, 255, 255, 0)"
215
+ )
216
+ |> Layout.AddLinearAxis(( StyleParam.AxisId.X 1 ),( initTransparentAxisTemplate()))
217
+ |> Layout.AddLinearAxis(( StyleParam.AxisId.Y 1 ),( initTransparentAxisTemplate()))
218
+
219
+ Template.init( defaultLayout)
0 commit comments