-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathError.fs
More file actions
121 lines (116 loc) · 7.61 KB
/
Error.fs
File metadata and controls
121 lines (116 loc) · 7.61 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
namespace Plotly.NET.TraceObjects
open Plotly.NET
open Plotly.NET.LayoutObjects
open DynamicObj
open System
open System.Runtime.InteropServices
/// Error type inherits from dynamic object
type Error() =
inherit DynamicObj()
/// <summary>
/// Returns a new Error object with the given styling.
/// </summary>
/// <param name ="Visible">Determines whether or not this set of error bars is visible.</param>
/// <param name ="Type">Determines the rule used to generate the error bars. If "constant`, the bar lengths are of a constant value. Set this constant in `value`. If "percent", the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If "sqrt", the bar lengths correspond to the square of the underlying data. If "data", the bar lengths are set with data set `array`.</param>
/// <param name ="Symmetric">Determines whether or not the error bars have the same length in both direction (top/bottom for vertical bars, left/right for horizontal bars.</param>
/// <param name ="Array">Sets the data corresponding the length of each error bar. Values are plotted relative to the underlying data.</param>
/// <param name ="Arrayminus">Sets the data corresponding the length of each error bar in the bottom (left) direction for vertical (horizontal) bars Values are plotted relative to the underlying data.</param>
/// <param name ="ArrayEncoded">Sets the error-bar lengths as a base64-encoded typed array (plotly.js >= 2.28.0). If provided, overrides <c>Array</c>.</param>
/// <param name ="ArrayminusEncoded">Sets the negative-direction error-bar lengths as a base64-encoded typed array (plotly.js >= 2.28.0). If provided, overrides <c>Arrayminus</c>.</param>
/// <param name ="Value">Sets the value of either the percentage (if `type` is set to "percent") or the constant (if `type` is set to "constant") corresponding to the lengths of the error bars.</param>
/// <param name ="Valueminus">Sets the value of either the percentage (if `type` is set to "percent") or the constant (if `type` is set to "constant") corresponding to the lengths of the error bars in the bottom (left) direction for vertical (horizontal) bars</param>
/// <param name ="Traceref"></param>
/// <param name ="Tracerefminus"></param>
/// <param name ="Copy_ystyle"></param>
/// <param name ="Color">Sets the stoke color of the error bars.</param>
/// <param name ="Thickness">Sets the thickness (in px) of the error bars.</param>
/// <param name ="Width">Sets the width (in px) of the cross-bar at both ends of the error bars.</param>
static member init
(
?Visible: bool,
?Type: StyleParam.ErrorType,
?Symmetric: bool,
?Array: seq<#IConvertible>,
?Arrayminus: seq<#IConvertible>,
?ArrayEncoded: EncodedTypedArray,
?ArrayminusEncoded: EncodedTypedArray,
?Value: float,
?Valueminus: float,
?Traceref: int,
?Tracerefminus: int,
?Copy_ystyle: bool,
?Color: Color,
?Thickness: float,
?Width: float
) =
Error()
|> Error.style (
?Visible = Visible,
?Type = Type,
?Symmetric = Symmetric,
?Array = Array,
?Arrayminus = Arrayminus,
?ArrayEncoded = ArrayEncoded,
?ArrayminusEncoded = ArrayminusEncoded,
?Value = Value,
?Valueminus = Valueminus,
?Traceref = Traceref,
?Tracerefminus = Tracerefminus,
?Copy_ystyle = Copy_ystyle,
?Color = Color,
?Thickness = Thickness,
?Width = Width
)
/// <summary>
/// Returns a function that applies the given style parameters to an Error object
/// </summary>
/// <param name ="Visible">Determines whether or not this set of error bars is visible.</param>
/// <param name ="Type">Determines the rule used to generate the error bars. If "constant`, the bar lengths are of a constant value. Set this constant in `value`. If "percent", the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If "sqrt", the bar lengths correspond to the square of the underlying data. If "data", the bar lengths are set with data set `array`.</param>
/// <param name ="Symmetric">Determines whether or not the error bars have the same length in both direction (top/bottom for vertical bars, left/right for horizontal bars.</param>
/// <param name ="Array">Sets the data corresponding the length of each error bar. Values are plotted relative to the underlying data.</param>
/// <param name ="Arrayminus">Sets the data corresponding the length of each error bar in the bottom (left) direction for vertical (horizontal) bars Values are plotted relative to the underlying data.</param>
/// <param name ="ArrayEncoded">Sets the error-bar lengths as a base64-encoded typed array (plotly.js >= 2.28.0). If provided, overrides <c>Array</c>.</param>
/// <param name ="ArrayminusEncoded">Sets the negative-direction error-bar lengths as a base64-encoded typed array (plotly.js >= 2.28.0). If provided, overrides <c>Arrayminus</c>.</param>
/// <param name ="Value">Sets the value of either the percentage (if `type` is set to "percent") or the constant (if `type` is set to "constant") corresponding to the lengths of the error bars.</param>
/// <param name ="Valueminus">Sets the value of either the percentage (if `type` is set to "percent") or the constant (if `type` is set to "constant") corresponding to the lengths of the error bars in the bottom (left) direction for vertical (horizontal) bars</param>
/// <param name ="Traceref"></param>
/// <param name ="Tracerefminus"></param>
/// <param name ="Copy_ystyle"></param>
/// <param name ="Color">Sets the stoke color of the error bars.</param>
/// <param name ="Thickness">Sets the thickness (in px) of the error bars.</param>
/// <param name ="Width">Sets the width (in px) of the cross-bar at both ends of the error bars.</param>
static member style
(
?Visible: bool,
?Type: StyleParam.ErrorType,
?Symmetric: bool,
?Array: seq<#IConvertible>,
?Arrayminus: seq<#IConvertible>,
?ArrayEncoded: EncodedTypedArray,
?ArrayminusEncoded: EncodedTypedArray,
?Value: float,
?Valueminus: float,
?Traceref: int,
?Tracerefminus: int,
?Copy_ystyle: bool,
?Color: Color,
?Thickness: float,
?Width: float
) =
fun (error: Error) ->
error
|> DynObj.withOptionalProperty "visible" Visible
|> DynObj.withOptionalPropertyBy "type" Type StyleParam.ErrorType.convert
|> DynObj.withOptionalProperty "symmetric" Symmetric
|> DynObj.withOptionalProperty "array" Array
|> DynObj.withOptionalProperty "arrayminus" Arrayminus
|> DynObj.withOptionalProperty "array" ArrayEncoded
|> DynObj.withOptionalProperty "arrayminus" ArrayminusEncoded
|> DynObj.withOptionalProperty "value" Value
|> DynObj.withOptionalProperty "valueminus" Valueminus
|> DynObj.withOptionalProperty "traceref" Traceref
|> DynObj.withOptionalProperty "tracerefminus" Tracerefminus
|> DynObj.withOptionalProperty "copy_ystyle" Copy_ystyle
|> DynObj.withOptionalProperty "color" Color
|> DynObj.withOptionalProperty "thickness" Thickness
|> DynObj.withOptionalProperty "width" Width