1
1
namespace Plotly.NET
2
2
3
+ open System
3
4
/// Module containing plotly axis
4
5
module Axis =
5
6
@@ -10,60 +11,58 @@ module Axis =
10
11
/// Init LinearAxis type
11
12
static member init
12
13
(
13
- ? AxisType ,
14
- ? Title : string ,
15
- ? Titlefont ,
16
- ? Autorange ,
17
- ? Rangemode ,
18
- ? Range ,
19
- ? RangeSlider : RangeSlider ,
20
- ? Fixedrange ,
21
- ? Tickmode ,
22
- ? nTicks ,
23
- ? Tick0 ,
24
- ? dTick ,
25
- ? Tickvals ,
26
- ? Ticktext ,
27
- ? Ticks ,
28
- ? Mirror ,
29
- ? Ticklen ,
30
- ? Tickwidth ,
31
- ? Tickcolor ,
32
- ? Showticklabels ,
33
- ? Tickfont ,
34
- ? Tickangle ,
35
- ? Tickprefix ,
36
- ? Showtickprefix ,
37
- ? Ticksuffix ,
38
- ? Showticksuffix ,
39
- ? Showexponent ,
40
- ? Exponentformat ,
41
- ? Tickformat ,
42
- ? Hoverformat ,
43
- ? Showline ,
44
- ? Linecolor ,
45
- ? Linewidth ,
46
- ? Showgrid ,
47
- ? Gridcolor ,
48
- ? Gridwidth ,
49
- ? Zeroline ,
50
- ? Zerolinecolor ,
51
- ? Zerolinewidth ,
52
- ? Anchor ,
53
- ? Side ,
54
- ? Overlaying ,
55
- ? Domain ,
56
- ? Position ,
57
- ? IsSubplotObj ,
58
- ? Tickvalssrc ,
59
- ? Ticktextsrc ,
60
- ? Showspikes ,
61
- ? Spikesides ,
62
- ? Spikethickness ,
63
- ? Spikecolor ,
64
- ? Showbackground ,
65
- ? Backgroundcolor ,
66
- ? Showaxeslabels
14
+ ? AxisType : StyleParam.AxisType ,
15
+ ? Title : string ,
16
+ ? Titlefont : Font ,
17
+ ? Autorange : StyleParam.AutoRange ,
18
+ ? Rangemode : StyleParam.RangeMode ,
19
+ ? Range : StyleParam.Range ,
20
+ ? RangeSlider : RangeSlider ,
21
+ ? Fixedrange : bool ,
22
+ ? Tickmode : StyleParam.TickMode ,
23
+ ? nTicks : int ,
24
+ ? Tick0 : IConvertible ,
25
+ ? dTick : IConvertible ,
26
+ ? Tickvals : seq < IConvertible >,
27
+ ? Ticktext : seq < IConvertible >,
28
+ ? Ticks : StyleParam.TickOptions ,
29
+ ? Mirror : StyleParam.Mirror ,
30
+ ? Ticklen : float ,
31
+ ? Tickwidth : float ,
32
+ ? Tickcolor : string ,
33
+ ? Showticklabels : bool ,
34
+ ? Tickfont : Font ,
35
+ ? Tickangle : int ,
36
+ ? Tickprefix : string ,
37
+ ? Showtickprefix : StyleParam.ShowTickOption ,
38
+ ? Ticksuffix : string ,
39
+ ? Showticksuffix : StyleParam.ShowTickOption ,
40
+ ? Showexponent : StyleParam.ShowExponent ,
41
+ ? Exponentformat : StyleParam.ExponentFormat ,
42
+ ? Tickformat : string ,
43
+ ? Hoverformat : string ,
44
+ ? Showline : bool ,
45
+ ? Linecolor : string ,
46
+ ? Linewidth : float ,
47
+ ? Showgrid : bool ,
48
+ ? Gridcolor : string ,
49
+ ? Gridwidth : float ,
50
+ ? Zeroline : bool ,
51
+ ? Zerolinecolor : string ,
52
+ ? Zerolinewidth : float ,
53
+ ? Anchor : StyleParam.AxisAnchorId ,
54
+ ? Side : StyleParam.Side ,
55
+ ? Overlaying : StyleParam.AxisAnchorId ,
56
+ ? Domain : StyleParam.Range ,
57
+ ? Position : float ,
58
+ ? IsSubplotObj : bool ,
59
+ ? Showspikes : bool ,
60
+ ? Spikethickness : float ,
61
+ ? Spikecolor : string ,
62
+ ? Showbackground : bool ,
63
+ ? Backgroundcolor : string ,
64
+ ? Showaxeslabels : bool ,
65
+ ? Visible : bool
67
66
) =
68
67
LinearAxis()
69
68
|> LinearAxis.style
@@ -113,74 +112,70 @@ module Axis =
113
112
?Domain = Domain ,
114
113
?Position = Position ,
115
114
?IsSubplotObj = IsSubplotObj ,
116
- ?Tickvalssrc = Tickvalssrc ,
117
- ?Ticktextsrc = Ticktextsrc ,
118
115
?Showspikes = Showspikes ,
119
- ?Spikesides = Spikesides ,
120
116
?Spikethickness = Spikethickness ,
121
117
?Spikecolor = Spikecolor ,
122
118
?Showbackground = Showbackground ,
123
119
?Backgroundcolor = Backgroundcolor,
124
- ?Showaxeslabels = Showaxeslabels
120
+ ?Showaxeslabels = Showaxeslabels,
121
+ ?Visible = Visible
125
122
)
126
123
127
124
// Applies the styles to LinearAxis()
128
125
static member style
129
126
(
130
- ? AxisType ,
131
- ? Title ,
132
- ? Titlefont : Font ,
133
- ? Autorange ,
134
- ? Rangemode ,
135
- ? Range ,
136
- ? RangeSlider : RangeSlider ,
137
- ? Fixedrange ,
138
- ? Tickmode ,
139
- ? nTicks ,
140
- ? Tick0 ,
141
- ? dTick ,
142
- ? Tickvals ,
143
- ? Ticktext ,
144
- ? Ticks ,
145
- ? Mirror ,
146
- ? Ticklen ,
147
- ? Tickwidth ,
148
- ? Tickcolor ,
149
- ? Showticklabels ,
150
- ? Tickfont : Font ,
151
- ? Tickangle ,
152
- ? Tickprefix ,
153
- ? Showtickprefix ,
154
- ? Ticksuffix ,
155
- ? Showticksuffix ,
156
- ? Showexponent ,
157
- ? Exponentformat ,
158
- ? Tickformat ,
159
- ? Hoverformat ,
127
+ ? AxisType : StyleParam.AxisType ,
128
+ ? Title : string ,
129
+ ? Titlefont : Font ,
130
+ ? Autorange : StyleParam.AutoRange ,
131
+ ? Rangemode : StyleParam.RangeMode ,
132
+ ? Range : StyleParam.Range ,
133
+ ? RangeSlider : RangeSlider ,
134
+ ? Fixedrange : bool ,
135
+ ? Tickmode : StyleParam.TickMode ,
136
+ ? nTicks : int ,
137
+ ? Tick0 : IConvertible ,
138
+ ? dTick : IConvertible ,
139
+ ? Tickvals : seq < IConvertible > ,
140
+ ? Ticktext : seq < IConvertible > ,
141
+ ? Ticks : StyleParam.TickOptions ,
142
+ ? Mirror : StyleParam.Mirror ,
143
+ ? Ticklen : float ,
144
+ ? Tickwidth : float ,
145
+ ? Tickcolor : string ,
146
+ ? Showticklabels : bool ,
147
+ ? Tickfont : Font ,
148
+ ? Tickangle : int ,
149
+ ? Tickprefix : string ,
150
+ ? Showtickprefix : StyleParam.ShowTickOption ,
151
+ ? Ticksuffix : string ,
152
+ ? Showticksuffix : StyleParam.ShowTickOption ,
153
+ ? Showexponent : StyleParam.ShowExponent ,
154
+ ? Exponentformat : StyleParam.ExponentFormat ,
155
+ ? Tickformat : string ,
156
+ ? Hoverformat : string ,
160
157
? Showline : bool ,
161
- ? Linecolor ,
162
- ? Linewidth ,
158
+ ? Linecolor : string ,
159
+ ? Linewidth : float ,
163
160
? Showgrid : bool ,
164
- ? Gridcolor ,
165
- ? Gridwidth ,
161
+ ? Gridcolor : string ,
162
+ ? Gridwidth : float ,
166
163
? Zeroline : bool ,
167
- ? Zerolinecolor ,
168
- ? Zerolinewidth ,
169
- ? Anchor : StyleParam.AxisAnchorId ,
170
- ? Side : StyleParam.Side ,
171
- ? Overlaying : StyleParam.AxisAnchorId ,
172
- ? Domain ,
173
- ? Position : float ,
174
- ? IsSubplotObj ,
175
- ? Tickvalssrc ,
176
- ? Ticktextsrc ,
177
- ? Showspikes ,
178
- ? Spikesides ,
179
- ? Spikethickness ,
180
- ? Spikecolor ,
181
- ? Showbackground ,
182
- ? Backgroundcolor ,
183
- ? Showaxeslabels
164
+ ? Zerolinecolor : string ,
165
+ ? Zerolinewidth : float ,
166
+ ? Anchor : StyleParam.AxisAnchorId ,
167
+ ? Side : StyleParam.Side ,
168
+ ? Overlaying : StyleParam.AxisAnchorId ,
169
+ ? Domain : StyleParam.Range ,
170
+ ? Position : float ,
171
+ ? IsSubplotObj : bool ,
172
+ ? Showspikes : bool ,
173
+ ? Spikethickness : float ,
174
+ ? Spikecolor : string ,
175
+ ? Showbackground : bool ,
176
+ ? Backgroundcolor : string ,
177
+ ? Showaxeslabels : bool ,
178
+ ? Visible : bool
184
179
) =
185
180
( fun ( axis : LinearAxis ) ->
186
181
AxisType |> DynObj.setValueOptBy axis " type" StyleParam.AxisType.convert
@@ -228,16 +223,13 @@ module Axis =
228
223
Domain |> DynObj.setValueOptBy axis " domain" StyleParam.Range.convert
229
224
Position |> DynObj.setValueOpt axis " position"
230
225
IsSubplotObj |> DynObj.setValueOpt axis " _isSubplotObj"
231
- Tickvalssrc |> DynObj.setValueOpt axis " tickvalssrc"
232
- Ticktextsrc |> DynObj.setValueOpt axis " ticktextsrc"
233
226
Showspikes |> DynObj.setValueOpt axis " showspikes"
234
- Spikesides |> DynObj.setValueOpt axis " spikesides"
235
227
Spikethickness |> DynObj.setValueOpt axis " spikethickness"
236
228
Spikecolor |> DynObj.setValueOpt axis " spikecolor"
237
229
Showbackground |> DynObj.setValueOpt axis " showbackground"
238
230
Backgroundcolor |> DynObj.setValueOpt axis " backgroundcolor"
239
231
Showaxeslabels |> DynObj.setValueOpt axis " showaxeslabels"
240
-
232
+ Visible |> DynObj.setValueOpt axis " visible "
241
233
//Update
242
234
Titlefont |> DynObj.setValueOpt axis " titlefont"
243
235
Tickfont |> DynObj.setValueOpt axis " tickfont"
0 commit comments